-
Notifications
You must be signed in to change notification settings - Fork 0
21 lines (21 loc) · 723 Bytes
/
ci.yml
File metadata and controls
21 lines (21 loc) · 723 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
name: Pull Request
on: [pull_request]
jobs:
PullRequest:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Make envfile
uses: SpicyPizza/create-envfile@v1
#precisamos criar um .env file por que o nosso está no gitignore
with:
envkey_POSTGRES_USER: 'postgres'
envkey_POSTGRES_PASSWORD: '123456'
envkey_POSTGRES_DB: 'manager_test'
envkey_DATABASE_URL: 'postgres://postgres:123456@database:5432/manager_test'
file_name: .env.test
- name: Run tests
run: docker-compose -f docker-compose-test.yml --build
- name: Build
run: npm i && npm run build