File tree 20 files changed +240
-250
lines changed
20 files changed +240
-250
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/calc/**
9
- - .github/workflows/provision-darwin.sh
10
- - .github/workflows/provision-linux.sh
11
- - .github/workflows/motoko-calc-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
+ - uses : actions/checkout@v4
21
+ if : github.event_name == 'push'
22
+ - uses : dorny/paths-filter@v3
23
+ id : filter
24
+ with :
25
+ filters : |
26
+ sources:
27
+ - motoko/calc/**
28
+ - .github/workflows/provision-darwin.sh
29
+ - .github/workflows/provision-linux.sh
30
+ - .github/workflows/motoko-calc-example.yaml
16
31
motoko-calc-example-darwin :
32
+ needs : changes
33
+ if : github.event_name == 'push' || needs.changes.outputs.sources == 'true'
17
34
runs-on : macos-12
18
35
steps :
19
36
- uses : actions/checkout@v1
26
43
make test
27
44
popd
28
45
motoko-calc-example-linux :
46
+ needs : changes
47
+ if : github.event_name == 'push' || needs.changes.outputs.sources == 'true'
29
48
runs-on : ubuntu-20.04
30
49
steps :
31
50
- uses : actions/checkout@v1
Load Diff This file was deleted.
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
+ - uses : actions/checkout@v4
21
+ if : github.event_name == 'push'
22
+ - uses : dorny/paths-filter@v3
23
+ id : filter
24
+ with :
25
+ filters : |
26
+ sources:
27
+ - motoko/counter/**
28
+ - .github/workflows/provision-darwin.sh
29
+ - .github/workflows/provision-linux.sh
30
+ - .github/workflows/motoko-counter-example.yaml
16
31
motoko-counter-example-darwin :
32
+ needs : changes
33
+ if : github.event_name == 'push' || needs.changes.outputs.sources == 'true'
17
34
runs-on : macos-12
18
35
steps :
19
36
- uses : actions/checkout@v1
26
43
make test
27
44
popd
28
45
motoko-counter-example-linux :
46
+ needs : changes
47
+ if : github.event_name == 'push' || needs.changes.outputs.sources == 'true'
29
48
runs-on : ubuntu-20.04
30
49
steps :
31
50
- uses : actions/checkout@v1
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 4
4
branches :
5
5
- master
6
6
pull_request :
7
- paths :
8
- - motoko/echo/**
9
- - .github/workflows/provision-darwin.sh
10
- - .github/workflows/provision-linux.sh
11
- - .github/workflows/motoko-echo-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
+ - uses : actions/checkout@v4
21
+ if : github.event_name == 'push'
22
+ - uses : dorny/paths-filter@v3
23
+ id : filter
24
+ with :
25
+ filters : |
26
+ sources:
27
+ - motoko/echo/**
28
+ - .github/workflows/provision-darwin.sh
29
+ - .github/workflows/provision-linux.sh
30
+ - .github/workflows/motoko-echo-example.yaml
16
31
motoko-echo-example-darwin :
32
+ needs : changes
33
+ if : github.event_name == 'push' || needs.changes.outputs.sources == 'true'
17
34
runs-on : macos-12
18
35
steps :
19
36
- uses : actions/checkout@v1
26
43
make test
27
44
popd
28
45
motoko-echo-example-linux :
46
+ needs : changes
47
+ if : github.event_name == 'push' || needs.changes.outputs.sources == 'true'
29
48
runs-on : ubuntu-20.04
30
49
steps :
31
50
- uses : actions/checkout@v1
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 4
4
branches :
5
5
- master
6
6
pull_request :
7
- paths :
8
- - motoko/factorial/**
9
- - .github/workflows/provision-darwin.sh
10
- - .github/workflows/provision-linux.sh
11
- - .github/workflows/motoko-factorial-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
+ - uses : actions/checkout@v4
21
+ if : github.event_name == 'push'
22
+ - uses : dorny/paths-filter@v3
23
+ id : filter
24
+ with :
25
+ filters : |
26
+ sources:
27
+ - motoko/factorial/**
28
+ - .github/workflows/provision-darwin.sh
29
+ - .github/workflows/provision-linux.sh
30
+ - .github/workflows/motoko-factorial-example.yaml
16
31
motoko-factorial-example-darwin :
32
+ needs : changes
33
+ if : github.event_name == 'push' || needs.changes.outputs.sources == 'true'
17
34
runs-on : macos-12
18
35
steps :
19
36
- uses : actions/checkout@v1
26
43
make test
27
44
popd
28
45
motoko-factorial-example-linux :
46
+ needs : changes
47
+ if : github.event_name == 'push' || needs.changes.outputs.sources == 'true'
29
48
runs-on : ubuntu-20.04
30
49
steps :
31
50
- uses : actions/checkout@v1
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 4
4
branches :
5
5
- master
6
6
pull_request :
7
- paths :
8
- - motoko/hello-world/**
9
- - .github/workflows/provision-darwin.sh
10
- - .github/workflows/provision-linux.sh
11
- - .github/workflows/motoko-hello-world-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
+ - uses : actions/checkout@v4
21
+ if : github.event_name == 'push'
22
+ - uses : dorny/paths-filter@v3
23
+ id : filter
24
+ with :
25
+ filters : |
26
+ sources:
27
+ - motoko/hello-world/**
28
+ - .github/workflows/provision-darwin.sh
29
+ - .github/workflows/provision-linux.sh
30
+ - .github/workflows/motoko-hello-world-example.yaml
16
31
motoko-hello-world-example-darwin :
32
+ needs : changes
33
+ if : github.event_name == 'push' || needs.changes.outputs.sources == 'true'
17
34
runs-on : macos-12
18
35
steps :
19
36
- uses : actions/checkout@v1
26
43
make test
27
44
popd
28
45
motoko-hello-world-example-linux :
46
+ needs : changes
47
+ if : github.event_name == 'push' || needs.changes.outputs.sources == 'true'
29
48
runs-on : ubuntu-20.04
30
49
steps :
31
50
- uses : actions/checkout@v1
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 4
4
branches :
5
5
- master
6
6
pull_request :
7
- paths :
8
- - motoko/phone-book/**
9
- - .github/workflows/provision-darwin.sh
10
- - .github/workflows/provision-linux.sh
11
- - .github/workflows/motoko-phone-book-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
+ - uses : actions/checkout@v4
21
+ if : github.event_name == 'push'
22
+ - uses : dorny/paths-filter@v3
23
+ id : filter
24
+ with :
25
+ filters : |
26
+ sources:
27
+ - motoko/phone-book/**
28
+ - .github/workflows/provision-darwin.sh
29
+ - .github/workflows/provision-linux.sh
30
+ - .github/workflows/motoko-phone-book-example.yaml
16
31
motoko-phone-book-example-darwin :
32
+ needs : changes
33
+ if : github.event_name == 'push' || needs.changes.outputs.sources == 'true'
17
34
runs-on : macos-12
18
35
steps :
19
36
- uses : actions/checkout@v1
26
43
make test
27
44
popd
28
45
motoko-phone-book-example-linux :
46
+ needs : changes
47
+ if : github.event_name == 'push' || needs.changes.outputs.sources == 'true'
29
48
runs-on : ubuntu-20.04
30
49
steps :
31
50
- uses : actions/checkout@v1
You can’t perform that action at this time.
0 commit comments