-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (36 loc) · 841 Bytes
/
Copy pathtest.yaml
File metadata and controls
44 lines (36 loc) · 841 Bytes
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
name: Run Tests
on:
pull_request:
branches:
- "main"
push:
branches:
- main
permissions:
contents: read
jobs:
lint-and-test:
runs-on: ubuntu-latest
permissions:
actions: write
checks: write
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Install pnpm
uses: pnpm/action-setup@v6
with:
run_install: false
- name: Install Node.js
uses: actions/setup-node@v6
with:
node-version: 24
cache: "pnpm"
- name: NPM Audit
run: npx audit-ci@7.1.0
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Run lint
run: pnpm lint
- name: Run tests
run: pnpm -r --if-present test