Skip to content

Commit

Permalink
Update Pants version. (#95)
Browse files Browse the repository at this point in the history
Use scie-pants, and update CI to recent actions versions.
  • Loading branch information
benjyw authored Apr 9, 2024
1 parent f0ff8dd commit 1a7c3bc
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 403 deletions.
27 changes: 15 additions & 12 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,33 +14,36 @@ jobs:
name: Build and test
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.19'
- name: Cache pants
uses: actions/cache@v2
- uses: actions/setup-python@v5
with:
key: ${{ runner.os }}-${{ hashFiles('pants*toml') }}-v2
path: |
~/.cache/pants/setup
python-version: '3.11'
- name: Initialize Pants
uses: pantsbuild/actions/init-pants@v8
with:
# cache0 makes it easy to bust the cache if needed
gha-cache-key: cache0-
named-caches-hash: ${{ hashFiles('go.mod') }}
- name: Set env vars
run: |
echo 'PANTS_CONFIG_FILES=+["${{ github.workspace }}/pants.ci.toml"]' >> ${GITHUB_ENV}
- name: Pants Bootstrap
run: ./pants version
run: pants version
- name: show toolchain token
if: github.event_name == 'push'
run: ./pants auth-token-info --auth-token-info-verbose
run: pants auth-token-info --auth-token-info-verbose
- name: Lint & check
run: |
./pants lint check ::
pants lint check ::
- name: Tests
run: |
./pants test ::
pants test ::
- name: Build smoketest & casloader docker images
run: |
./pants package cmd/::
pants package cmd/::
# Keeping those here since the publish workflow wasn't ported to use pants.
- name: Build smoketest docker image
uses: docker/build-push-action@v3
Expand Down
Loading

0 comments on commit 1a7c3bc

Please sign in to comment.