-
-
Notifications
You must be signed in to change notification settings - Fork 417
43 lines (36 loc) · 1004 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
37
38
39
40
41
42
43
name: On Push
on:
push:
branches: main
env:
CI: true
NX_CLOUD_DISTRIBUTED_EXECUTION: true
jobs:
start:
uses: ./.github/workflows/start-nx-cloud.yml
agent:
uses: ./.github/workflows/start-agents.yml
test:
needs: start
uses: ./.github/workflows/test.yml
secrets:
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
release:
needs: test
uses: ./.github/workflows/release-package.yml
secrets:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
stop:
if: ${{ always() }}
needs: release
uses: ./.github/workflows/stop-nx-cloud.yml
report:
if: ${{ always() }}
needs: [stop, test, start, release]
runs-on: ubuntu-latest
steps:
- name: on error
if: ${{ needs.start.result != 'success' || needs.test.result != 'success' || needs.release.result != 'success' }}
run: exit 1