-
Notifications
You must be signed in to change notification settings - Fork 51
41 lines (36 loc) · 967 Bytes
/
nodejs.yaml
File metadata and controls
41 lines (36 loc) · 967 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
name: Node.js CI
on:
push:
paths:
- "report/**"
branches:
- main
pull_request:
paths:
- "report/**"
permissions:
contents: read
jobs:
lint:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./report
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@002fdce3c6a235733a90a27c80493a3241e56863 # v2.12.1
with:
egress-policy: audit
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup Node.js
uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3.9.1
with:
node-version: "20"
cache: "yarn"
cache-dependency-path: "./report/yarn.lock"
- name: Install dependencies
run: yarn install --immutable
- name: Check formatting
run: yarn check
- name: Run tests
run: yarn test