Skip to content

Commit adfa5a6

Browse files
Steve HusakSteve Husak
Steve Husak
authored and
Steve Husak
committed
feat: add node build action
1 parent d162cd6 commit adfa5a6

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/node.js.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
3+
4+
name: Node.js CI
5+
6+
on:
7+
push:
8+
branches: [ "main" ]
9+
pull_request:
10+
branches: [ "main" ]
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
- name: Use Node
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version-file: '.nvmrc'
23+
cache: 'npm'
24+
- run: npm ci
25+
- run: npm run prettier:check
26+
- run: npm run lint:check
27+
- run: npm run build --if-present
28+
- run: npm test

0 commit comments

Comments
 (0)