NG17: Migrate to nx 17 #39
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: Angular CI-Build | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
concurrency: | |
group: ci_${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
needs: | |
- angular | |
steps: | |
- run: echo "Angular CI-Build completed!" | |
angular: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- uses: nrwl/nx-set-shas@v2 | |
with: | |
main-branch-name: 'master' | |
- run: npm ci | |
- run: npx nx format:check --base=origin/master | |
- run: npx nx affected --target=lint --base=origin/master | |
- run: npx nx affected --target=test --base=origin/master --ci --code-coverage | |
- run: npm run server & | |
- run: npx nx affected --target=e2e --base=origin/master --max-parallel 1 | |
- run: npx nx affected --target=build --base=origin/master |