Skip to content

Commit

Permalink
Merge branch 'master' into dependabot/npm_and_yarn/motoko/internet_id…
Browse files Browse the repository at this point in the history
…entity_integration/follow-redirects-1.15.5
  • Loading branch information
dfx-json authored Jan 29, 2024
2 parents b1523cd + 9f6da77 commit b697038
Show file tree
Hide file tree
Showing 20 changed files with 226 additions and 234 deletions.
29 changes: 24 additions & 5 deletions .github/workflows/motoko-calc-example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,33 @@ on:
branches:
- master
pull_request:
paths:
- motoko/calc/**
- .github/workflows/provision-darwin.sh
- .github/workflows/provision-linux.sh
- .github/workflows/motoko-calc-example.yaml
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
# JOB to run change detection
changes:
runs-on: ubuntu-latest
permissions:
pull-requests: read
# Set job outputs to values from filter step
outputs:
sources: ${{ steps.filter.outputs.sources }}
steps:
- uses: actions/checkout@v4
if: github.event_name == 'push'
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
sources:
- motoko/calc/**
- .github/workflows/provision-darwin.sh
- .github/workflows/provision-linux.sh
- .github/workflows/motoko-calc-example.yaml
motoko-calc-example-darwin:
needs: changes
if: github.event_name == 'push' || needs.changes.outputs.sources == 'true'
runs-on: macos-12
steps:
- uses: actions/checkout@v1
Expand All @@ -26,6 +43,8 @@ jobs:
make test
popd
motoko-calc-example-linux:
needs: changes
if: github.event_name == 'push' || needs.changes.outputs.sources == 'true'
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v1
Expand Down
20 changes: 0 additions & 20 deletions .github/workflows/motoko-calc-skip.yaml

This file was deleted.

7 changes: 4 additions & 3 deletions .github/workflows/motoko-counter-example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ jobs:
outputs:
sources: ${{ steps.filter.outputs.sources }}
steps:
# For pull requests it's not necessary to checkout the code
- uses: actions/checkout@v4
if: github.event_name == 'push'
- uses: dorny/paths-filter@v3
id: filter
with:
Expand All @@ -29,7 +30,7 @@ jobs:
- .github/workflows/motoko-counter-example.yaml
motoko-counter-example-darwin:
needs: changes
if: ${{ needs.changes.outputs.sources == 'true' }}
if: github.event_name == 'push' || needs.changes.outputs.sources == 'true'
runs-on: macos-12
steps:
- uses: actions/checkout@v1
Expand All @@ -43,7 +44,7 @@ jobs:
popd
motoko-counter-example-linux:
needs: changes
if: ${{ needs.changes.outputs.sources == 'true' }}
if: github.event_name == 'push' || needs.changes.outputs.sources == 'true'
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v1
Expand Down
29 changes: 24 additions & 5 deletions .github/workflows/motoko-echo-example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,33 @@ on:
branches:
- master
pull_request:
paths:
- motoko/echo/**
- .github/workflows/provision-darwin.sh
- .github/workflows/provision-linux.sh
- .github/workflows/motoko-echo-example.yaml
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
# JOB to run change detection
changes:
runs-on: ubuntu-latest
permissions:
pull-requests: read
# Set job outputs to values from filter step
outputs:
sources: ${{ steps.filter.outputs.sources }}
steps:
- uses: actions/checkout@v4
if: github.event_name == 'push'
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
sources:
- motoko/echo/**
- .github/workflows/provision-darwin.sh
- .github/workflows/provision-linux.sh
- .github/workflows/motoko-echo-example.yaml
motoko-echo-example-darwin:
needs: changes
if: github.event_name == 'push' || needs.changes.outputs.sources == 'true'
runs-on: macos-12
steps:
- uses: actions/checkout@v1
Expand All @@ -26,6 +43,8 @@ jobs:
make test
popd
motoko-echo-example-linux:
needs: changes
if: github.event_name == 'push' || needs.changes.outputs.sources == 'true'
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v1
Expand Down
20 changes: 0 additions & 20 deletions .github/workflows/motoko-echo-skip.yaml

This file was deleted.

29 changes: 24 additions & 5 deletions .github/workflows/motoko-factorial-example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,33 @@ on:
branches:
- master
pull_request:
paths:
- motoko/factorial/**
- .github/workflows/provision-darwin.sh
- .github/workflows/provision-linux.sh
- .github/workflows/motoko-factorial-example.yaml
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
# JOB to run change detection
changes:
runs-on: ubuntu-latest
permissions:
pull-requests: read
# Set job outputs to values from filter step
outputs:
sources: ${{ steps.filter.outputs.sources }}
steps:
- uses: actions/checkout@v4
if: github.event_name == 'push'
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
sources:
- motoko/factorial/**
- .github/workflows/provision-darwin.sh
- .github/workflows/provision-linux.sh
- .github/workflows/motoko-factorial-example.yaml
motoko-factorial-example-darwin:
needs: changes
if: github.event_name == 'push' || needs.changes.outputs.sources == 'true'
runs-on: macos-12
steps:
- uses: actions/checkout@v1
Expand All @@ -26,6 +43,8 @@ jobs:
make test
popd
motoko-factorial-example-linux:
needs: changes
if: github.event_name == 'push' || needs.changes.outputs.sources == 'true'
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v1
Expand Down
20 changes: 0 additions & 20 deletions .github/workflows/motoko-factorial-skip.yaml

This file was deleted.

29 changes: 24 additions & 5 deletions .github/workflows/motoko-hello-world-example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,33 @@ on:
branches:
- master
pull_request:
paths:
- motoko/hello-world/**
- .github/workflows/provision-darwin.sh
- .github/workflows/provision-linux.sh
- .github/workflows/motoko-hello-world-example.yaml
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
# JOB to run change detection
changes:
runs-on: ubuntu-latest
permissions:
pull-requests: read
# Set job outputs to values from filter step
outputs:
sources: ${{ steps.filter.outputs.sources }}
steps:
- uses: actions/checkout@v4
if: github.event_name == 'push'
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
sources:
- motoko/hello-world/**
- .github/workflows/provision-darwin.sh
- .github/workflows/provision-linux.sh
- .github/workflows/motoko-hello-world-example.yaml
motoko-hello-world-example-darwin:
needs: changes
if: github.event_name == 'push' || needs.changes.outputs.sources == 'true'
runs-on: macos-12
steps:
- uses: actions/checkout@v1
Expand All @@ -26,6 +43,8 @@ jobs:
make test
popd
motoko-hello-world-example-linux:
needs: changes
if: github.event_name == 'push' || needs.changes.outputs.sources == 'true'
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v1
Expand Down
20 changes: 0 additions & 20 deletions .github/workflows/motoko-hello-world-skip.yaml

This file was deleted.

29 changes: 24 additions & 5 deletions .github/workflows/motoko-phone-book-example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,33 @@ on:
branches:
- master
pull_request:
paths:
- motoko/phone-book/**
- .github/workflows/provision-darwin.sh
- .github/workflows/provision-linux.sh
- .github/workflows/motoko-phone-book-example.yaml
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
# JOB to run change detection
changes:
runs-on: ubuntu-latest
permissions:
pull-requests: read
# Set job outputs to values from filter step
outputs:
sources: ${{ steps.filter.outputs.sources }}
steps:
- uses: actions/checkout@v4
if: github.event_name == 'push'
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
sources:
- motoko/phone-book/**
- .github/workflows/provision-darwin.sh
- .github/workflows/provision-linux.sh
- .github/workflows/motoko-phone-book-example.yaml
motoko-phone-book-example-darwin:
needs: changes
if: github.event_name == 'push' || needs.changes.outputs.sources == 'true'
runs-on: macos-12
steps:
- uses: actions/checkout@v1
Expand All @@ -26,6 +43,8 @@ jobs:
make test
popd
motoko-phone-book-example-linux:
needs: changes
if: github.event_name == 'push' || needs.changes.outputs.sources == 'true'
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v1
Expand Down
20 changes: 0 additions & 20 deletions .github/workflows/motoko-phone-book-skip.yaml

This file was deleted.

Loading

0 comments on commit b697038

Please sign in to comment.