-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (29 loc) · 862 Bytes
/
node.yaml
File metadata and controls
35 lines (29 loc) · 862 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
name: Node CI
on:
push:
branches: [main]
paths: [backend/node/**, .github/workflows/node.yaml]
pull_request:
branches: [main]
paths: [backend/node/**, .github/workflows/node.yaml]
jobs:
backend-node:
name: Backend Node
runs-on: ubuntu-latest
defaults:
run:
working-directory: backend/node
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: Setup Node.js
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
with:
node-version-file: backend/node/package.json
cache: npm
cache-dependency-path: backend/node/package-lock.json
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint
- name: Check syntax
run: node --check index.js