diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 185549cb..3a204003 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -7,6 +7,9 @@ jobs: go-version: [1.18.x, 1.22.x, 1.23.x] platform: [ubuntu-20.04, ubuntu-22.04, ubuntu-24.04, windows-latest, macos-12, macos-14] runs-on: ${{ matrix.platform }} + defaults: + run: + shell: bash steps: - name: Install Go uses: actions/setup-go@v5 @@ -14,11 +17,12 @@ jobs: go-version: ${{ matrix.go-version }} - name: Checkout code uses: actions/checkout@v4 - - if: ${{ matrix.go-version == '1.18.x' }} + - name: Set PACKAGES env + if: ${{ matrix.go-version == '1.18.x' }} run: | # This corresponds with the list in Makefile:1, but omits the "userns" # and "capability" modules, which require go1.21 as minimum. - echo 'PACKAGES="mountinfo mount sequential signal symlink user"' >> $GITHUB_ENV + echo 'PACKAGES=mountinfo mount sequential signal symlink user' >> $GITHUB_ENV - name: go mod tidy run: | make foreach CMD="go mod tidy"