-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
62 lines (61 loc) · 1.5 KB
/
ci-checks.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
name: ci
on:
workflow_call:
pull_request:
branches:
- next
paths-ignore:
- ".github/**"
- ".website/**"
- ".example/**"
jobs:
test:
name: "check_unit_tests"
needs: install
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
uses: ./.github/actions/install
- run: yarn test
- name: Upload Coverage
run: npx codecov --disable=gcov
typescript:
name: "check_types"
needs: install
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
uses: ./.github/actions/install
- run: yarn typescript
lint:
name: "check_lint"
needs: install
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
uses: ./.github/actions/install
- run: yarn lint
- run: yarn format
docs-api:
name: "check_docs_api"
needs: install
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
uses: ./.github/actions/install
- name: Build 🔧
run: yarn docs-build-api
- name: Check for API changes
run: git diff --exit-code
# If dep changes this will cache them, else each job will try to update cache
install:
name: "yarn_install"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
uses: ./.github/actions/install