Skip to content

Commit 90c5fc3

Browse files
authored
Merge pull request #179 from code-mancers/github-workflow
chore(actions): setup github actions
2 parents 788cb7d + 1dd04c5 commit 90c5fc3

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/nodejs.yml

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

0 commit comments

Comments
 (0)