diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 913923f8a..93dd5d320 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -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 ./... diff --git a/.github/workflows/bump-deps.yaml b/.github/workflows/bump-deps.yaml index a57304aa1..8ea03d443 100644 --- a/.github/workflows/bump-deps.yaml +++ b/.github/workflows/bump-deps.yaml @@ -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 diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml index af37dd05e..31e5b59da 100644 --- a/.github/workflows/e2e.yaml +++ b/.github/workflows/e2e.yaml @@ -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 @@ -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 - + diff --git a/.github/workflows/ecr-auth.yaml b/.github/workflows/ecr-auth.yaml index f17e5132d..7b87f3d75 100644 --- a/.github/workflows/ecr-auth.yaml +++ b/.github/workflows/ecr-auth.yaml @@ -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 @@ -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 diff --git a/.github/workflows/ghcr-auth.yaml b/.github/workflows/ghcr-auth.yaml index c8bfa01c4..262933921 100644 --- a/.github/workflows/ghcr-auth.yaml +++ b/.github/workflows/ghcr-auth.yaml @@ -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 @@ -44,4 +43,4 @@ jobs: if [[ "$CRED1" == "$CRED2" ]] ; then echo "credentials are cached by infrastructure" fi - + diff --git a/.github/workflows/presubmit.yaml b/.github/workflows/presubmit.yaml index 680f006aa..d0c057f4c 100644 --- a/.github/workflows/presubmit.yaml +++ b/.github/workflows/presubmit.yaml @@ -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 diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 05b3a0ed8..db456e75d 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -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 ./...