Skip to content

Commit

Permalink
.github/workflows: Run checks on 3 OSes.
Browse files Browse the repository at this point in the history
This fixes #1670.
  • Loading branch information
xiaq committed Dec 16, 2024
1 parent 22d280d commit aa76ef4
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,17 @@ jobs:

checks:
name: Run checks
runs-on: ubuntu-latest
# Most checks do not rely on the OS, but some (like check-gen) do. To ensure
# maximal coverage, we run all of the checks on the three main OSes.
strategy:
matrix:
os: [ubuntu, macos, windows]
runs-on: ${{ matrix.os }}-latest
steps:
# autocrlf is problematic for check-fmt-go.
- name: Turn off autocrlf
if: matrix.os == 'windows'
run: git config --global core.autocrlf false
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
Expand All @@ -149,7 +158,7 @@ jobs:
go install golang.org/x/tools/cmd/goimports@latest
# Keep the versions of staticcheck and codespell in sync with docs/workflows.md
go install honnef.co/go/tools/cmd/[email protected]
pip install --user codespell==2.3.0
pip install codespell==2.3.0
- name: Run checks
run: make all-checks

Expand Down

0 comments on commit aa76ef4

Please sign in to comment.