-
Notifications
You must be signed in to change notification settings - Fork 34
40 lines (37 loc) · 1000 Bytes
/
test.yaml
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
name: Run tests
on:
push:
branches: ["main"]
pull_request:
jobs:
build:
runs-on: ubuntu-latest
env:
NODE_OPTIONS: "--max-old-space-size=2500"
steps:
- name: Checkout repo
uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
cache: "npm"
cache-dependency-path: |
./package-lock.json
- name: npm ci
run: npm ci
- name: typecheck
run: npm run build
- name: Run tests
run: npm test
prettier:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Prettify code
uses: creyD/prettier_action@master
with:
dry: True
prettier_options: --write .
prettier_version: 2.8.4 # Fixed version to prevent breaking changes as creyD/prettier_action uses the latest available by default
# github_token: ${{ secrets.PERSONAL_GITHUB_TOKEN }}