-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (53 loc) · 1.43 KB
/
develop.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Continuous Integration
on:
push:
pull_request:
branches:
- develop
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:14
env:
POSTGRES_USER: test
POSTGRES_PASSWORD: test
POSTGRES_DB: test
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
concurrency: test_environment
env:
DATABASE_HOST: localhost
DATABASE_USER: test
DATABASE_PASSWORD: "test"
DATABASE_PORT: "5432"
DATABASE_NAME: test
ENVIRONMENT: test
JWT_SECRETE: ${{secrets.JWT_SECRETE}}
TEST_DATABASE_URL: ${{secrets.TEST_DATABASE_URL}}
DEV_DATABASE_URL: ${{secrets.DEV_DATABASE_URL}}
steps:
- name: Development Code
uses: actions/checkout@v2
- name: Use Node.js 16.x
uses: actions/setup-node@v1
with:
node-version: 16.x
- run: npm install
- name: Run tests and generate coverage reports
run: npm run coverage
- name: Sending coveralls report
uses: coverallsapp/github-action@master
with:
github-token: ${{secrets.GITHUB_TOKEN}}
- name: send coverage report
uses: paambaati/[email protected]
env:
CC_TEST_REPORTER_ID: ${{secrets.CC_REPORT}}