-
Notifications
You must be signed in to change notification settings - Fork 8
39 lines (31 loc) · 758 Bytes
/
ci.yml
File metadata and controls
39 lines (31 loc) · 758 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: Node.js CI
on:
push:
branches: [ master, develop ]
pull_request:
branches: [ master, develop ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: nodejs/package-lock.json
- name: Install dependencies
working-directory: nodejs
run: npm ci
- name: Run lint
working-directory: nodejs
run: npm run lint
- name: Build
working-directory: nodejs
run: npm run build
- name: Run tests
working-directory: nodejs
env:
HACKMD_ACCESS_TOKEN: "test_token_123456789"
run: npm test