-
Notifications
You must be signed in to change notification settings - Fork 4
54 lines (45 loc) · 1.12 KB
/
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
44
45
46
47
48
49
50
51
52
53
54
name: ci
on:
push:
pull_request:
types: [opened, reopened, ready_for_review, synchronize]
jobs:
check-is-built:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '20'
- name: yarn install
run: yarn install
- name: yarn build
run: yarn build
- name: git status is clean
shell: bash
run: |
[ -z "$(git status --porcelain)" ]
prettier:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '20'
- name: yarn install
run: yarn install
- name: format all files
run: yarn format
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '20'
- name: yarn install
run: yarn install
- name: validate script integration tests
run: node scripts/validate.integration-tests.mjs
- name: validate schemas
run: yarn validate