-
Notifications
You must be signed in to change notification settings - Fork 22
59 lines (49 loc) · 1.36 KB
/
test_nightly.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
name: Nightly Test
on:
schedule:
- cron: '0 20 * * *'
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
with:
# Number of commits to fetch. 0 indicates all history for all branches and tags.
# Pulls all commits (needed for Lerna)
fetch-depth: 0
- name: Setup resources and environment
uses: ./.github/actions/setup
id: setup
- name: Install Dependencies
run: npm ci --audit=false --fund=false
- name: Versions
run: |
node -v
npm -v
- name: Build
# Prevent NX caching it should always build
run: npm run build -- --skip-nx-cache
lint:
name: Lint
needs: build
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup resources and environment
uses: ./.github/actions/setup
- name: Lint
# Prevent NX caching because it must run all linting, even though the code has not chaged.
run: npm run lint:all -- --skip-nx-cache
test:
name: 'Test'
needs: lint
uses: ./.github/workflows/test_all_browsers.yml
secrets: inherit
with:
build-prefix: 'Nightly Test '
max-attempts: '3'