-
Notifications
You must be signed in to change notification settings - Fork 143
50 lines (46 loc) · 1.35 KB
/
blade-validate.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
name: Blade Validate
on: [pull_request]
env:
GITHUB_ACCESS_TOKEN: ${{ secrets.CI_BOT_TOKEN }}
jobs:
validate:
name: Validate Source Code
runs-on: ubuntu-latest # nosemgrep: non-self-hosted-runner
steps:
- name: Checkout Codebase
uses: actions/checkout@v3
- name: Use Node v18
uses: actions/setup-node@v3
with:
node-version: 18.12.1
- name: Setup Cache & Install Dependencies
uses: ./.github/actions/install-dependencies
- name: Build Blade
run: yarn build
working-directory: packages/blade
- name: Lint Source Code
run: yarn lint
- name: Run TypeScript Checks
run: yarn typecheck
working-directory: packages/blade
test:
name: Run Tests (${{ matrix.shard }})
runs-on: ubuntu-latest # nosemgrep: non-self-hosted-runner
strategy:
fail-fast: false
matrix:
shard: [1/4, 2/4, 3/4, 4/4]
steps:
- name: Checkout Codebase
uses: actions/checkout@v3
- name: Use Node v18
uses: actions/setup-node@v3
with:
node-version: 18.12.1
- name: Setup Cache & Install Dependencies
uses: ./.github/actions/install-dependencies
- name: Run Unit Tests
run: yarn test
working-directory: packages/blade
env:
SHARD: ${{ matrix.shard }}