-
Notifications
You must be signed in to change notification settings - Fork 7
66 lines (63 loc) · 1.7 KB
/
check.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
name: Check
on:
#? We want to run this workflow on pull requests to the dev branch
#? Because we use the git flow workflow, the dev branch is the one that will receive the pull requests that may be invalid
pull_request:
branches:
- dev
workflow_dispatch:
jobs:
check:
name: Check
runs-on: ubuntu-latest
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
TURBO_REMOTE_ONLY: true
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20.x"
cache: "npm"
- name: Install dependencies
run: npm install
- name: Cache for Turbo
uses: rharkor/[email protected]
- name: Init
run: npm run init
- name: Lint check
run: npm run lint
- name: Format check
run: npm run prettier
- name: Unit & Integration tests
run: npm run test
- name: Check dependencies usage
run: npm run depcheck
- name: Advanced check
run: npm run ci-check
build:
name: Build
runs-on: ubuntu-latest
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
TURBO_REMOTE_ONLY: true
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20.x"
cache: "npm"
- name: Install dependencies
run: npm install
- name: Cache for Turbo
uses: rharkor/[email protected]
- name: Init
run: npm run init
- name: Build
run: npm run type-check