-
Notifications
You must be signed in to change notification settings - Fork 215
66 lines (62 loc) · 1.64 KB
/
ci_checks.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: CI Checks
on:
push:
branches:
- master
pull_request:
env:
NX_CLOUD_DISTRIBUTED_EXECUTION: true
node_version: 16
jobs:
checks:
name: Nx Cloud - Main Job
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: ./.github/workflows/setup
with:
node_version: ${{ env.node_version }}
- uses: ./.github/workflows/nx-run
agents:
runs-on: ubuntu-latest
name: Nx Cloud - Agent ${{ matrix.agent }}
timeout-minutes: 15
strategy:
matrix:
agent: [1, 2, 3]
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: ./.github/workflows/setup
with:
node_version: ${{ env.node_version }}
- name: Start Nx Agent ${{ matrix.agent }}
run: npx nx-cloud start-agent
agent:
runs-on: ubuntu-latest
name: Nx Cloud - Agent E2E
timeout-minutes: 15
env:
NX_VERBOSE_LOGGING: 'false'
NX_SKIP_NX_CACHE: 'true'
steps:
- name: Set nx run variable
run: echo "NX_RUN_GROUP=run-group-e2e-${{ github.run_id}}-${{ github.run_attempt }}" >> $GITHUB_ENV
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: ./.github/workflows/setup
with:
node_version: ${{ env.node_version }}
- name: Install xvfb
run: sudo apt-get install -y xvfb
- name: Start Nx Agent E2E
run: npx nx-cloud start-agent
- uses: actions/upload-artifact@v3
with:
name: e2e-screenshots
path: apps/vscode-e2e/.screenshots
if-no-files-found: ignore