-
Notifications
You must be signed in to change notification settings - Fork 57
67 lines (55 loc) · 1.55 KB
/
lint-and-test.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
67
name: Lint & test
on:
pull_request:
branches:
- '*'
env:
IREC_CREATE_DEVICE_ISSUER: issueraccount
jobs:
cancel-previous:
name: 'Cancel Previous Runs'
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
- uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
run-tests:
services:
postgres:
image: postgres
env:
POSTGRES_DB: 'origin'
POSTGRES_PASSWORD: 'postgres'
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 10s
--health-retries 10
ports:
- 5432:5432
runs-on: ubuntu-latest
needs: cancel-previous
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-node@v2-beta
with:
node-version: '14'
- name: Restore timestamp
run: |
sh scripts/restore-original-timestamps.sh
- name: Check dependency versions
run: node common/scripts/install-run-rush.js check
- name: Install application
run: |
node common/scripts/install-run-rush.js update
- name: Build application
run: node common/scripts/install-run-rush.js rebuild --verbose
- name: Run all UI unit tests
run: node common/scripts/install-run-rush.js test:ui
- name: Run all test:e2e in packages
run: node common/scripts/install-run-rush.js test:e2e
- name: Run all test:ci:contracts
run: node common/scripts/install-run-rush.js test:ci:contracts