-
Notifications
You must be signed in to change notification settings - Fork 4
49 lines (45 loc) · 1.17 KB
/
main.yml
File metadata and controls
49 lines (45 loc) · 1.17 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Webhook Store Test
on: push
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
cache: "yarn"
- run: yarn
- run: yarn lint
e2e-test:
runs-on: ubuntu-latest
services:
postgres:
image: postgres
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
env:
DATABASE_URL: postgresql://postgres:postgres@localhost:5432/grading-app
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
cache: "yarn"
- run: yarn
- run: yarn test:ci
- name: Code Climate Coverage Action
uses: paambaati/codeclimate-action@v3.2.0
with:
coverageLocations: |
${{github.workspace}}/*.lcov:lcov
env:
CC_TEST_REPORTER_ID: a6b0d56370d23dae1132a04c0a5c3045b6b4055b07a9a331a455da86e84f4dbd