Introduce CI Github action
commit9c1dd891cb8444e22c754bc53e0a24eb17927708
authorMark Eibes <mark.eibes@gmail.com>
dateSun 19 Jul 2020, 00:47 (6 years ago)
parent04b4799
.github/workflows/ci.ymlnew file+23
@@ -0,0 +1,23 @@
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:
7+ push:
8+ branches: [ main ]
9+ pull_request:
10+ branches: [ main ]
11+
12+jobs:
13+ build:
14+ name: Test
15+ runs-on: ubuntu-latest
16+ steps:
17+ - uses: actions/checkout@v2
18+ - uses: borales/actions-yarn@v2.0.0
19+ with:
20+ cmd: install # will run `yarn install` command
21+ - uses: borales/actions-yarn@v2.0.0
22+ with:
23+ cmd: test # will run `yarn test` command