-
Notifications
You must be signed in to change notification settings - Fork 78
34 lines (31 loc) · 967 Bytes
/
push.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: ci
on: [ push ]
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 45
steps:
- uses: actions/checkout@v2
- uses: actions/[email protected]
with:
node-version: 14
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- run: npm install
- run: npm run lint
- run: npm run coverage
- name: integration-test
if: ${{ github.actor != 'dependabot[bot]' }}
run: npm run integration-test -- --coverageDirectory coverage/integration_tests
env:
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
- uses: actions/upload-artifact@v2
with:
name: code-coverage-report
path: coverage