-
Notifications
You must be signed in to change notification settings - Fork 8
39 lines (31 loc) · 938 Bytes
/
tests.yaml
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
name: tests
on: push
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_HOST: postgres
POSTGRES_DB: rf_dados_publicos_cnpj
POSTGRES_PORT: 5432
jobs:
run_tests:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
id: checkout
- name: Set up Docker Compose
run: |
sudo apt-get update
sudo apt-get install -y docker-compose
- name: build img
run: make build-img
- name: create local env file
run: |
touch .env
echo POSTGRES_USER=${{ env.POSTGRES_USER }} >> .env
echo POSTGRES_PASSWORD=${{ env.POSTGRES_PASSWORD }} >> .env
echo POSTGRES_HOST=${{ env.POSTGRES_HOST }} >> .env
echo POSTGRES_DB=${{ env.POSTGRES_DB }} >> .env
echo POSTGRES_PORT=${{ env.POSTGRES_PORT }} >> .env
- name: run tests
run: make tests