-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (32 loc) · 901 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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