Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ebe3cb1

Browse files
committed
Add some test workflows
1 parent 38e3ffe commit ebe3cb1

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/ci.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
on:
2+
push: {branches: master}
3+
pull_request: {branches: master}
4+
5+
jobs:
6+
integration:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: output-set
10+
uses: actions/github-script@master
11+
with:
12+
script: |
13+
const core = require('@actions/core')
14+
core.setOutput('result', 'test')
15+
- run: |
16+
if [[ "${{steps.output-set.outputs.result}}" != "test" ]]; then
17+
exit 1
18+
fi
19+
20+
jest:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@v2
24+
- uses: actions/setup-node@v1
25+
with: {node-version: 13.x}
26+
- uses: actions/cache@v1
27+
with:
28+
path: ~/.npm
29+
key: ${{runner.os}}-npm-${{hashFiles('**/package-lock.json')}}
30+
restore-keys: ${{runner.os}}-npm-
31+
- run: npm ci
32+
- run: npm test

0 commit comments

Comments
 (0)