-
Notifications
You must be signed in to change notification settings - Fork 4
48 lines (37 loc) · 981 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
41
42
43
44
45
46
47
48
name: Test
on:
push:
branches:
- main
pull_request:
branches:
- '*'
env:
FORCE_COLOR: true
jobs:
test:
name: Test
strategy:
matrix:
os:
- ubuntu-latest
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: package.json
- name: Restore cache
uses: actions/cache@v3
with:
path: ~/.local/share/pnpm/store/v3
key: cache-pnpm-${{ hashFiles('./pnpn-lock.yaml') }}
restore-keys: cache-pnpm-
- name: Install dependencies
run: corepack enable && pnpm i && pnpm add -D @reporters/github
- name: Run lint
run: pnpm lint
- name: Run tests
run: node --test --test-reporter=@reporters/github --test-reporter-destination=stdout --test-reporter=spec --test-reporter-destination=stdout