-
-
Notifications
You must be signed in to change notification settings - Fork 185
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
call workflows from 'ci.yml' to consolidate list
- Loading branch information
Showing
5 changed files
with
59 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
|
||
# 🗨️🖼️ to keep output tidy and legible, this workflow triggers most of the other ones. hence, the simple, generic name (which will show up as prefix to most others) | ||
# 🗨️ hat tip to enketo-core - converged towards this solution and found out they did the same thing. looks good | ||
name: ci | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
|
||
jobs: | ||
changes: | ||
runs-on: ubuntu-latest | ||
permissions: { pull-requests: read } | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- id: filter | ||
uses: dorny/paths-filter@v3 | ||
with: { filters: .github/filters.yml } | ||
outputs: | ||
npm-test: ${{ steps.filter.outputs.npm-test }} | ||
pytest: ${{ steps.filter.outputs.pytest }} | ||
darker: ${{ steps.filter.outputs.darker }} | ||
unknown: ${{ steps.filter.outputs.unknown }} | ||
|
||
npm-test: | ||
needs: changes | ||
uses: ./.github/workflows/npm-test.yml | ||
if: | | ||
needs.changes.outputs.npm-test == 'true' || | ||
needs.changes.outputs.unknown == 'true' || | ||
github.event_name == 'push' | ||
pytest: | ||
needs: changes | ||
uses: ./.github/workflows/pytest.yml | ||
if: | | ||
needs.changes.outputs.pytest == 'true' || | ||
needs.changes.outputs.unknown == 'true' || | ||
github.event_name == 'push' | ||
darker: | ||
needs: changes | ||
uses: ./.github/workflows/darker.yml | ||
if: | | ||
needs.changes.outputs.darker == 'true' && | ||
github.event_name == 'pull_request' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters