Skip to content

Commit 29394de

Browse files
authored
Merge pull request #157 from kolyshkin/fix-packages
ci: fix not honoring PACKAGES setting in gha Windows runners
2 parents 4a1fbfe + eaecf09 commit 29394de

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,22 @@ jobs:
77
go-version: [1.18.x, 1.22.x, 1.23.x]
88
platform: [ubuntu-20.04, ubuntu-22.04, ubuntu-24.04, windows-latest, macos-12, macos-14]
99
runs-on: ${{ matrix.platform }}
10+
defaults:
11+
run:
12+
shell: bash
1013
steps:
1114
- name: Install Go
1215
uses: actions/setup-go@v5
1316
with:
1417
go-version: ${{ matrix.go-version }}
1518
- name: Checkout code
1619
uses: actions/checkout@v4
17-
- if: ${{ matrix.go-version == '1.18.x' }}
20+
- name: Set PACKAGES env
21+
if: ${{ matrix.go-version == '1.18.x' }}
1822
run: |
1923
# This corresponds with the list in Makefile:1, but omits the "userns"
2024
# and "capability" modules, which require go1.21 as minimum.
21-
echo 'PACKAGES="mountinfo mount sequential signal symlink user"' >> $GITHUB_ENV
25+
echo 'PACKAGES=mountinfo mount sequential signal symlink user' >> $GITHUB_ENV
2226
- name: go mod tidy
2327
run: |
2428
make foreach CMD="go mod tidy"

0 commit comments

Comments
 (0)