Skip to content

Commit 1ab5972

Browse files
authored
Skip duplicate CI tests (#327)
1 parent 578402a commit 1ab5972

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,25 @@
11
name: CI
2+
concurrency:
3+
group: build-${{ github.event.pull_request.number || github.ref }}
4+
cancel-in-progress: true
25
on:
36
push:
47
branches:
58
- master
69
pull_request:
710
jobs:
11+
pre_job:
12+
# continue-on-error: true # Uncomment once integration is finished
13+
runs-on: ubuntu-latest
14+
# Map a step output to a job output
15+
outputs:
16+
should_skip: ${{ steps.skip_check.outputs.should_skip }}
17+
steps:
18+
- id: skip_check
19+
uses: fkirc/skip-duplicate-actions@v5
820
test:
21+
needs: pre_job
22+
if: needs.pre_job.outputs.should_skip != 'true'
923
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
1024
runs-on: ${{ matrix.os }}
1125
continue-on-error: ${{ matrix.version == 'nightly' }}

0 commit comments

Comments
 (0)