Skip to content

Commit 0b878f1

Browse files
authored
Create node.js.yml
1 parent 9dae877 commit 0b878f1

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/node.js.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# This workflow will do a clean install of node dependencies, 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+
6+
on: [push]
7+
8+
jobs:
9+
build:
10+
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Get node
16+
uses: actions/setup-node@v1
17+
with:
18+
node-version: 14.x
19+
- run: npm i -g yarn
20+
- name: install, build, test
21+
run: |
22+
yarn
23+
npm run build --if-present
24+
npm test

0 commit comments

Comments
 (0)