-
Notifications
You must be signed in to change notification settings - Fork 3
39 lines (29 loc) · 806 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
name: Test
on:
push:
schedule:
- cron: '0 9 * * *' # every day at 9:00
jobs:
test:
name: Tests and linting
runs-on: ubuntu-22.04
timeout-minutes: 5
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: Set up Node
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4
with:
node-version: 18
- name: Fetch Git history
run: git fetch --no-tags --depth=50 origin main
- name: Install dependencies
uses: bahmutov/npm-install@v1
- name: Lint
run: yarn lint
- name: Check code-style format
run: yarn format
- name: Check types
run: yarn types
- name: Unit tests
run: yarn test:unit