build(gha): run build step before test to avoid nx cache issues #223
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
name: 'On push ⚙️' | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- beta | ||
- alpha | ||
paths-ignore: | ||
- ./**/*.md | ||
- ./.idea/** | ||
concurrency: | ||
group: '${{ github.workflow }}-${{ github.ref }}' | ||
cancel-in-progress: true | ||
jobs: | ||
# Run setup initially to save cache and time on subsequent jobs | ||
setup: | ||
uses: ./.github/workflows/setup.yml | ||
Check failure on line 21 in .github/workflows/push.yml GitHub Actions / .github/workflows/push.ymlInvalid workflow file
|
||
secrets: inherit | ||
build: | ||
needs: setup | ||
uses: ./.github/workflows/build.yml | ||
secrets: inherit | ||
test: | ||
needs: build | ||
uses: ./.github/workflows/test.yml | ||
secrets: inherit | ||
rebase-prs: | ||
needs: | ||
- test | ||
- build | ||
uses: ./.github/workflows/rebase-prs.yml | ||
secrets: inherit |