Skip to content

Commit 6ca9019

Browse files
Miscellaneous workflow updates (#165)
# Description Split off from other contemporary PRs as these changes are better suited to be outside them. In specific, this PR makes the following changes: - sets `fail-fast: false` so that we run both jobs in the test matrix - runs on pushes to the main branch only, as we were otherwise running workflows twice: one for the push event and one for the pull request event - modifies the concurrency setting to cancel intermediate runs for both
1 parent 2428596 commit 6ca9019

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@ name: CI
22

33
on:
44
push:
5+
branches:
6+
- main
57
pull_request:
68

79
concurrency:
8-
group: ${{ github.workflow }}-${{ github.ref }}
10+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
911
cancel-in-progress: true
1012

1113
env:
@@ -19,6 +21,7 @@ jobs:
1921
strategy:
2022
matrix:
2123
os: [ubuntu-latest, macos-latest]
24+
fail-fast: false
2225
runs-on: ${{ matrix.os }}
2326
steps:
2427
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

0 commit comments

Comments
 (0)