-
Notifications
You must be signed in to change notification settings - Fork 5
72 lines (67 loc) · 2.13 KB
/
checks.yaml
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
67
68
69
70
71
72
name: Checks
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
cancel-in-progress: true
on:
pull_request:
types: [opened, synchronize]
merge_group:
branches:
- master
push:
branches:
- master # Keeps the action's cache up-to-date to be shared with PRs
permissions:
contents: read
env:
DISABLE_NX_CACHE: ${{ contains(github.event.pull_request.labels.*.name, 'disable-nx-cache') && 'yes' || 'no' }}
NX_REJECT_UNKNOWN_LOCAL_CACHE: 0
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
with:
fetch-depth: 0
- uses: ExodusMovement/actions/setup/lerna@06f077a9081a1e973586dde8870e7116873b9b84
with:
npm-token: ${{ secrets.NPM_TOKEN }}
disable-nx-cache: ${{ env.DISABLE_NX_CACHE }}
- name: Install dependencies
run: yarn install --immutable
- name: Lint
run: yarn lint
- name: Format
run: yarn format:check
test:
name: Test
runs-on: ubuntu-latest
timeout-minutes: 35
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: ExodusMovement/actions/setup/lerna@06f077a9081a1e973586dde8870e7116873b9b84
with:
npm-token: ${{ secrets.NPM_TOKEN }}
disable-nx-cache: ${{ env.DISABLE_NX_CACHE }}
- name: Install dependencies
run: yarn install --immutable
- name: Build
run: yarn build
- name: Test
run: yarn test
integration-test:
name: Test (Integration)
runs-on: ubuntu-latest
timeout-minutes: 35
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: ExodusMovement/actions/setup/lerna@06f077a9081a1e973586dde8870e7116873b9b84
with:
npm-token: ${{ secrets.NPM_TOKEN }}
disable-nx-cache: ${{ env.DISABLE_NX_CACHE }}
- name: Install dependencies
run: yarn install --immutable
- name: Integration Test
run: yarn test:integration -- --runInBand