diff --git a/.github/workflows/docker-pipeline.yml b/.github/workflows/docker-pipeline.yml new file mode 100644 index 0000000..7867250 --- /dev/null +++ b/.github/workflows/docker-pipeline.yml @@ -0,0 +1,25 @@ +name: CI Pipeline for Database + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + setup: + runs-on: ubuntu-latest + steps: + - name: Checkout código + uses: actions/checkout@v3 + + - name: Configurar variáveis de ambiente + run: cp .env.template .env + + - name: Subir banco com Docker Compose + run: docker compose up -d + + - name: Testar conexão com banco + run: docker exec -it unimancer_postgres psql -U postgres -d postgres -c '\l'