diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 185549c..e7d7372 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,12 +8,20 @@ jobs: platform: [ubuntu-20.04, ubuntu-22.04, ubuntu-24.04, windows-latest, macos-12, macos-14] runs-on: ${{ matrix.platform }} steps: + - name: Checkout code + uses: actions/checkout@v4 + - name: Find go.sum files + id: gosum + shell: bash + run: | + echo 'files<> "$GITHUB_OUTPUT" + git ls-files '*/go.sum' >> "$GITHUB_OUTPUT" + echo 'EOF' >> "$GITHUB_OUTPUT" - name: Install Go uses: actions/setup-go@v5 with: go-version: ${{ matrix.go-version }} - - name: Checkout code - uses: actions/checkout@v4 + cache-dependency-path: ${{ steps.gosum.outputs.files }} - if: ${{ matrix.go-version == '1.18.x' }} run: | # This corresponds with the list in Makefile:1, but omits the "userns"