-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
78 lines (69 loc) · 1.8 KB
/
ci-checks.yml
File metadata and controls
78 lines (69 loc) · 1.8 KB
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
73
74
75
76
77
78
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@v3
- name: Enable Corepack
run: corepack enable
shell: bash
- name: Enable Yarn with Corepack
run: corepack prepare yarn@4.5.2 --activate # Root packages use Yarn 4.5.2
shell: bash
- name: Install dependencies
uses: ./.github/actions/install
- run: yarn test
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
typescript:
name: 'check_types'
needs: install
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies
uses: ./.github/actions/install
- run: yarn typescript
lint:
name: 'check_lint'
needs: install
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- 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@v3
- 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@v3
- name: Install dependencies
uses: ./.github/actions/install