File tree Expand file tree Collapse file tree 2 files changed +33
-1
lines changed Expand file tree Collapse file tree 2 files changed +33
-1
lines changed Original file line number Diff line number Diff line change 11name : CI
2- ' on ' :
2+ on :
33 pull_request_target :
44 types : [labeled]
55
Original file line number Diff line number Diff line change 1+ name : ci
2+ on : [ push ]
3+
4+ jobs :
5+ test :
6+ runs-on : ubuntu-latest
7+ timeout-minutes : 45
8+ steps :
9+ - uses : actions/checkout@v2
10+ 11+ with :
12+ node-version : 14
13+
14+ - name : Cache dependencies
15+ uses : actions/cache@v2
16+ with :
17+ path : ~/.npm
18+ key : ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
19+ restore-keys : |
20+ ${{ runner.os }}-node-
21+ - run : npm install
22+ - run : npm run lint
23+ - run : npm run test -- --coverageDirectory coverage/unit_tests
24+ - run : npm run integration-test -- --coverageDirectory coverage/integration_tests
25+ env :
26+ AWS_ACCESS_KEY_ID : ${{secrets.AWS_ACCESS_KEY_ID}}
27+ AWS_SECRET_ACCESS_KEY : ${{secrets.AWS_SECRET_ACCESS_KEY}}
28+
29+ - uses : actions/upload-artifact@v2
30+ with :
31+ name : code-coverage-report
32+ path : coverage
You can’t perform that action at this time.
0 commit comments