File tree 2 files changed +23
-25
lines changed
2 files changed +23
-25
lines changed Original file line number Diff line number Diff line change 4
4
branches :
5
5
- master
6
6
pull_request :
7
- paths :
8
- - motoko/counter/**
9
- - .github/workflows/provision-darwin.sh
10
- - .github/workflows/provision-linux.sh
11
- - .github/workflows/motoko-counter-example.yaml
12
7
concurrency :
13
8
group : ${{ github.workflow }}-${{ github.ref }}
14
9
cancel-in-progress : true
15
10
jobs :
11
+ # JOB to run change detection
12
+ changes :
13
+ runs-on : ubuntu-latest
14
+ permissions :
15
+ pull-requests : read
16
+ # Set job outputs to values from filter step
17
+ outputs :
18
+ sources : ${{ steps.filter.outputs.sources }}
19
+ steps :
20
+ # For pull requests it's not necessary to checkout the code
21
+ - uses : dorny/paths-filter@v3
22
+ id : filter
23
+ with :
24
+ filters : |
25
+ sources:
26
+ - motoko/counter/**
27
+ - .github/workflows/provision-darwin.sh
28
+ - .github/workflows/provision-linux.sh
29
+ - .github/workflows/motoko-counter-example.yaml
16
30
motoko-counter-example-darwin :
31
+ needs : changes
32
+ if : ${{ needs.changes.outputs.sources == 'true' }}
17
33
runs-on : macos-12
18
34
steps :
19
35
- uses : actions/checkout@v1
26
42
make test
27
43
popd
28
44
motoko-counter-example-linux :
45
+ needs : changes
46
+ if : ${{ needs.changes.outputs.sources == 'true' }}
29
47
runs-on : ubuntu-20.04
30
48
steps :
31
49
- uses : actions/checkout@v1
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments