Skip to content

Commit

Permalink
chore: Tune Windows tests split
Browse files Browse the repository at this point in the history
  • Loading branch information
KapJI authored and twpayne committed Nov 19, 2024
1 parent cb86244 commit a119c52
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ jobs:
strategy:
fail-fast: false
matrix:
test-index: [0, 1]
test-index: [0, 1, 2]
needs: changes
if: github.event_name == 'push' || needs.changes.outputs.code == 'true'
runs-on: windows-2022
Expand All @@ -369,9 +369,11 @@ jobs:
run: |
if (${{ matrix.test-index }} -eq 0) {
go test ./... -short -race
go test ./internal/cmd -run=TestScript -filter='^[0-9a-hA-h]' -race
go test ./internal/cmd -run=TestScript -filter='^[0-9a-cA-C]' -race
} elseif (${{ matrix.test-index }} -eq 1) {
go test ./internal/cmd -run=TestScript -filter='^[d-lD-L]' -race
} else {
go test ./internal/cmd -run=TestScript -filter='^[i-zI-Z]' -race
go test ./internal/cmd -run=TestScript -filter='^[m-zM-Z]' -race
}
check:
runs-on: ubuntu-22.04
Expand Down

0 comments on commit a119c52

Please sign in to comment.