File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed
Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments