Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit ba1d5c5

Browse files
authored
Add GitHub action to test build. (#27)
1 parent 2403564 commit ba1d5c5

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/build-test.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: NPM build + test
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
node: [ '18' ]
11+
12+
name: Node ${{ matrix.node }} build
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: actions/cache@v4
16+
with:
17+
path: ~/.npm
18+
key: ${{ runner.os }}-${{ matrix.node }}-npm-${{ hashFiles('**/package-lock.lock') }}
19+
restore-keys: |
20+
${{ runner.os }}-npm-
21+
- name: Setup node
22+
uses: actions/setup-node@v4
23+
with:
24+
node-version: ${{ matrix.node }}
25+
26+
- run: npm ci
27+
- run: npm run build

0 commit comments

Comments
 (0)