-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (32 loc) · 879 Bytes
/
config.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
name: Pipeline
on: [push]
jobs:
unit-e2e:
name: Unit and E2E Tests
runs-on: ubuntu-latest
services:
postgres:
image: bitnami/postgresql
ports:
- 5432:5432
env:
POSTGRESQL_USERNAME: postgres
POSTGRESQL_PASSWORD: docker
POSTGRESQL_DATABASE: ignite-gym
steps:
- name: Checkout code
uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'
- name: Install Dependencies
run: npm ci
- name: Run Unit and E2E Tests
run: npm run test
env:
PORT: 3333
JWT_SECRET: testing
DATABASE_URL: "postgresql://postgres:docker@localhost:5432/ignite-gym?schema=public"
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3