Skip to content

Commit 69098d4

Browse files
authored
feat: add node build action (#11)
1 parent d162cd6 commit 69098d4

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/node.js.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
18+
- name: Use Node
19+
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # 4.1.0
20+
with:
21+
node-version-file: '.nvmrc'
22+
cache: 'npm'
23+
- run: npm ci
24+
- run: npm run prettier:check
25+
- run: npm run lint:check
26+
- run: npm run build --if-present
27+
- run: npm test

0 commit comments

Comments
 (0)