Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Pants version. #95

Merged
merged 4 commits into from
Apr 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading