Skip to content

Commit a8e79be

Browse files
authored
Skip duplicate CI tests and cancel concurrent tests (#147)
1 parent 0fc3526 commit a8e79be

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,24 @@ on:
1414
- 'LICENSE.md'
1515
- 'README.md'
1616
- '.github/workflows/TagBot.yml'
17+
18+
concurrency:
19+
group: build-${{ github.event.pull_request.number || github.ref }}-${{ github.workflow }}
20+
cancel-in-progress: true
21+
1722
jobs:
23+
pre_job:
24+
# continue-on-error: true # Uncomment once integration is finished
25+
runs-on: ubuntu-latest
26+
# Map a step output to a job output
27+
outputs:
28+
should_skip: ${{ steps.skip_check.outputs.should_skip }}
29+
steps:
30+
- id: skip_check
31+
uses: fkirc/skip-duplicate-actions@v5
1832
test:
33+
needs: pre_job
34+
if: needs.pre_job.outputs.should_skip != 'true'
1935
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
2036
runs-on: ${{ matrix.os }}
2137
strategy:

0 commit comments

Comments
 (0)