-
Notifications
You must be signed in to change notification settings - Fork 37
45 lines (34 loc) · 1.08 KB
/
tests.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
name: Tests
on: [push, pull_request]
jobs:
checks:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18]
steps:
- name: Check out Git repository
uses: actions/checkout@v3
- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- name: Ensure fresh npm version
run: npm install -g npm@latest
- name: Build Env Information
run: |
node -v
npm -v
- name: Install dependencies
run: npm ci
- name: Type check
run: npm run type-check
- name: Lint check
run: npm run lint-check
- name: Format check
run: npm run format-check
- name: Test Vite Build
run: npm run build
env:
NODE_OPTIONS: "--max-old-space-size=8192"