Skip to content

Commit 6306503

Browse files
committed
generalize OS determination conditions
This enables installation of dependencies on non-latest runners.
1 parent 2ab3a12 commit 6306503

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/ci.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,22 @@ jobs:
1919
pipx install pyflakes
2020
shellcheck --version
2121
pyflakes --version
22-
if: ${{ matrix.os == 'macos-latest' }}
22+
if: ${{ runner.os == 'macOS' }}
2323
- name: Install dependencies on Linux
2424
run: |
2525
set -x
2626
sudo apt-get install -y shellcheck
2727
pip install pyflakes
2828
shellcheck --version
2929
pyflakes --version
30-
if: ${{ matrix.os == 'ubuntu-latest' }}
30+
if: ${{ runner.os == 'Linux' }}
3131
- name: Install dependencies on Windows
3232
run: |
3333
# `choco install shellcheck` is too slow on GitHub Actions. It takes more than 3 minutes to install one package
3434
# choco install shellcheck
3535
pip install pyflakes
3636
pyflakes --version
37-
if: ${{ matrix.os == 'windows-latest' }}
37+
if: ${{ runner.os == 'Windows' }}
3838
- uses: actions/checkout@v4
3939
- uses: actions/setup-go@v5
4040
with:

0 commit comments

Comments
 (0)