Skip to content

Commit 18ee8da

Browse files
authored
GitHub Action to test Javascript
1 parent dfacd25 commit 18ee8da

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/nodejs.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Node CI
2+
on: [push, pull_request]
3+
jobs:
4+
build:
5+
runs-on: ubuntu-latest
6+
strategy:
7+
matrix:
8+
node-version: [13.x]
9+
steps:
10+
- uses: actions/checkout@v2
11+
- name: Use Node.js ${{ matrix.node-version }}
12+
uses: actions/setup-node@v1
13+
with:
14+
node-version: ${{ matrix.node-version }}
15+
- name: npm install, build, and test
16+
run: |
17+
npm ci
18+
npm run build --if-present
19+
npm test
20+
env:
21+
CI: true

0 commit comments

Comments
 (0)