Skip to content

Commit

Permalink
use latest go everywhere
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Hall <jason@chainguard.dev>
  • Loading branch information
imjasonh committed Oct 17, 2024
1 parent 2fc4ae3 commit 7207028
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 30 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,11 @@ jobs:
name: Build
runs-on: ubuntu-latest

strategy:
matrix:
go-version: [1.19, 1.20]

steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
check-latest: true
go-version-file: go.mod

- run: |
go build ./...
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/bump-deps.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.19
check-latest: true
go-version-file: go.mod

- run: ./hack/bump-deps.sh
- name: Create Pull Request
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.19
check-latest: true
go-version-file: go.mod

- name: crane append to an image, set the entrypoint, run it locally, roundtrip it
shell: bash
Expand Down Expand Up @@ -82,13 +81,13 @@ jobs:
./app/crane pull --platform=linux/arm64 --format=oci $remote $distroless
./app/crane push $distroless $local
diff <(./app/crane manifest --platform linux/arm64 $remote) <(./app/crane manifest $local)
- name: crane pull image, and export it from stdin to filesystem tar to stdout
shell: bash
run: |
set -euxo pipefail
./app/crane pull ubuntu ubuntu.tar
./app/crane export - - < ubuntu.tar > filesystem.tar
ls -la *.tar
6 changes: 2 additions & 4 deletions .github/workflows/ecr-auth.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.19
check-latest: true
go-version-file: go.mod

- name: Install krane
working-directory: ./cmd/krane
Expand Down Expand Up @@ -61,8 +60,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.19
check-latest: true
go-version-file: go.mod

- name: Install crane
working-directory: ./cmd/crane
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/ghcr-auth.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.19
check-latest: true
go-version-file: go.mod

- name: Install krane
working-directory: ./cmd/krane
Expand All @@ -44,4 +43,4 @@ jobs:
if [[ "$CRED1" == "$CRED2" ]] ; then
echo "credentials are cached by infrastructure"
fi
3 changes: 1 addition & 2 deletions .github/workflows/presubmit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,5 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.19
check-latest: true
go-version-file: go.mod
- run: ./hack/presubmit.sh
9 changes: 1 addition & 8 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,14 @@ on:
branches: ['main']

jobs:

test:
strategy:
matrix:
go-version: [1.19, '1.20']

name: Unit Tests
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
check-latest: true
go-version-file: go.mod

- run: go test -coverprofile=coverage.txt -covermode=atomic -race ./...

Expand Down

0 comments on commit 7207028

Please sign in to comment.