-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (29 loc) · 724 Bytes
/
Copy pathtest.yml
File metadata and controls
39 lines (29 loc) · 724 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
name: Run Tests
on:
push:
branches:
- main
pull_request:
permissions: {}
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
persist-credentials: false
- name: Use Node.js
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5
with:
node-version: "18.x"
package-manager-cache: false
- name: Install dependencies
run: npm install -D
- name: Format check
run: npm run format:check
- name: Lint
run: npm run lint
- name: Run tests
run: npm run test