Skip to content

Commit b60b432

Browse files
Merge branch 'master' into dfx-0.16.1-1
2 parents 7842811 + e4a244d commit b60b432

20 files changed

+240
-250
lines changed

.github/workflows/motoko-calc-example.yaml

+24-5
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,33 @@ on:
44
branches:
55
- master
66
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
127
concurrency:
138
group: ${{ github.workflow }}-${{ github.ref }}
149
cancel-in-progress: true
1510
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
1631
motoko-calc-example-darwin:
32+
needs: changes
33+
if: github.event_name == 'push' || needs.changes.outputs.sources == 'true'
1734
runs-on: macos-12
1835
steps:
1936
- uses: actions/checkout@v1
@@ -26,6 +43,8 @@ jobs:
2643
make test
2744
popd
2845
motoko-calc-example-linux:
46+
needs: changes
47+
if: github.event_name == 'push' || needs.changes.outputs.sources == 'true'
2948
runs-on: ubuntu-20.04
3049
steps:
3150
- uses: actions/checkout@v1

.github/workflows/motoko-calc-skip.yaml

-20
This file was deleted.

.github/workflows/motoko-counter-example.yaml

+24-5
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,33 @@ on:
44
branches:
55
- master
66
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
127
concurrency:
138
group: ${{ github.workflow }}-${{ github.ref }}
149
cancel-in-progress: true
1510
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
1631
motoko-counter-example-darwin:
32+
needs: changes
33+
if: github.event_name == 'push' || needs.changes.outputs.sources == 'true'
1734
runs-on: macos-12
1835
steps:
1936
- uses: actions/checkout@v1
@@ -26,6 +43,8 @@ jobs:
2643
make test
2744
popd
2845
motoko-counter-example-linux:
46+
needs: changes
47+
if: github.event_name == 'push' || needs.changes.outputs.sources == 'true'
2948
runs-on: ubuntu-20.04
3049
steps:
3150
- uses: actions/checkout@v1

.github/workflows/motoko-counter-skip.yaml

-20
This file was deleted.

.github/workflows/motoko-echo-example.yaml

+24-5
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,33 @@ on:
44
branches:
55
- master
66
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
127
concurrency:
138
group: ${{ github.workflow }}-${{ github.ref }}
149
cancel-in-progress: true
1510
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
1631
motoko-echo-example-darwin:
32+
needs: changes
33+
if: github.event_name == 'push' || needs.changes.outputs.sources == 'true'
1734
runs-on: macos-12
1835
steps:
1936
- uses: actions/checkout@v1
@@ -26,6 +43,8 @@ jobs:
2643
make test
2744
popd
2845
motoko-echo-example-linux:
46+
needs: changes
47+
if: github.event_name == 'push' || needs.changes.outputs.sources == 'true'
2948
runs-on: ubuntu-20.04
3049
steps:
3150
- uses: actions/checkout@v1

.github/workflows/motoko-echo-skip.yaml

-20
This file was deleted.

.github/workflows/motoko-factorial-example.yaml

+24-5
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,33 @@ on:
44
branches:
55
- master
66
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
127
concurrency:
138
group: ${{ github.workflow }}-${{ github.ref }}
149
cancel-in-progress: true
1510
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
1631
motoko-factorial-example-darwin:
32+
needs: changes
33+
if: github.event_name == 'push' || needs.changes.outputs.sources == 'true'
1734
runs-on: macos-12
1835
steps:
1936
- uses: actions/checkout@v1
@@ -26,6 +43,8 @@ jobs:
2643
make test
2744
popd
2845
motoko-factorial-example-linux:
46+
needs: changes
47+
if: github.event_name == 'push' || needs.changes.outputs.sources == 'true'
2948
runs-on: ubuntu-20.04
3049
steps:
3150
- uses: actions/checkout@v1

.github/workflows/motoko-factorial-skip.yaml

-20
This file was deleted.

.github/workflows/motoko-hello-world-example.yaml

+24-5
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,33 @@ on:
44
branches:
55
- master
66
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
127
concurrency:
138
group: ${{ github.workflow }}-${{ github.ref }}
149
cancel-in-progress: true
1510
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
1631
motoko-hello-world-example-darwin:
32+
needs: changes
33+
if: github.event_name == 'push' || needs.changes.outputs.sources == 'true'
1734
runs-on: macos-12
1835
steps:
1936
- uses: actions/checkout@v1
@@ -26,6 +43,8 @@ jobs:
2643
make test
2744
popd
2845
motoko-hello-world-example-linux:
46+
needs: changes
47+
if: github.event_name == 'push' || needs.changes.outputs.sources == 'true'
2948
runs-on: ubuntu-20.04
3049
steps:
3150
- uses: actions/checkout@v1

.github/workflows/motoko-hello-world-skip.yaml

-20
This file was deleted.

.github/workflows/motoko-phone-book-example.yaml

+24-5
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,33 @@ on:
44
branches:
55
- master
66
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
127
concurrency:
138
group: ${{ github.workflow }}-${{ github.ref }}
149
cancel-in-progress: true
1510
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
1631
motoko-phone-book-example-darwin:
32+
needs: changes
33+
if: github.event_name == 'push' || needs.changes.outputs.sources == 'true'
1734
runs-on: macos-12
1835
steps:
1936
- uses: actions/checkout@v1
@@ -26,6 +43,8 @@ jobs:
2643
make test
2744
popd
2845
motoko-phone-book-example-linux:
46+
needs: changes
47+
if: github.event_name == 'push' || needs.changes.outputs.sources == 'true'
2948
runs-on: ubuntu-20.04
3049
steps:
3150
- uses: actions/checkout@v1

0 commit comments

Comments
 (0)