Skip to content

Commit 023d360

Browse files
committed
Merge remote-tracking branch 'origin/main' into main
2 parents 46cf28a + 38f7f8a commit 023d360

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/main.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3+
4+
name: Node.js CI
5+
on:
6+
push:
7+
branches: [ main ]
8+
pull_request:
9+
branches: [ main ]
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
18+
- name: Use Node.js 16.x
19+
uses: actions/setup-node@v2
20+
with:
21+
node-version: 16.x
22+
cache: 'npm'
23+
24+
- name: Install dependencies
25+
run: npm ci
26+
27+
- name: Run Build
28+
run: npm run build --if-present
29+
30+
- name: Run Tests
31+
run: npm test

0 commit comments

Comments
 (0)