Skip to content

Commit

Permalink
🧱 ci: add workflow to test postgres database containerization
Browse files Browse the repository at this point in the history
  • Loading branch information
R-enanVieira committed Dec 13, 2024
1 parent 8d743d8 commit 322cec2
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/docker-pipeline.yml
Original file line number Diff line number Diff line change
@@ -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 unimancer_postgres psql -U postgres -d postgres -c '\l'

0 comments on commit 322cec2

Please sign in to comment.