Skip to content

Commit abfd6fb

Browse files
author
horike37
committed
chore: update ci config
1 parent 51cba22 commit abfd6fb

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed

.github/workflows/config.yml renamed to .github/workflows/pull_request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: CI
2-
'on':
2+
on:
33
pull_request_target:
44
types: [labeled]
55

.github/workflows/push.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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+
- uses: actions/[email protected]
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

0 commit comments

Comments
 (0)