-
Notifications
You must be signed in to change notification settings - Fork 28
37 lines (29 loc) · 882 Bytes
/
ci.yml
File metadata and controls
37 lines (29 loc) · 882 Bytes
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
name: CI
on:
# Build on PR creation/updates, also when pushing to main/develop, or create a release
pull_request:
types: [opened, synchronize]
push:
branches: [main, develop]
tags: [v*]
jobs:
validate:
name: Check TS & validate list schema & tests
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
persist-credentials: false
- name: Setup dependencies
uses: ./.github/actions/setup-dependencies
with:
authToken: ${{ secrets.PACKAGE_READ_AUTH_TOKEN }}
- name: Run validation schema
run: yarn validate:schema
- name: Run validation chains
run: yarn validate:chains
- name: TypeScript check
run: yarn typecheck
- name: Run tests
run: yarn test