Spinning up the hamster...
All checks were successful
🧪✨ Tests Workflow / 🛡️ 🔒 Library Audit (push) Successful in 1m18s
🧪✨ Tests Workflow / 🧪 ✨ Database Migrations (push) Successful in 1m29s
🧪✨ Tests Workflow / 🐙 🔍 Code Sniffer (push) Successful in 1m44s
🧪✨ Tests Workflow / 🧪 ✅ Unit Tests (push) Successful in 2m17s
🧪✨ Tests Workflow / 🛡️ 🔒 License Check (push) Successful in 2m25s
🧪✨ Tests Workflow / 📝 ✨ Code Lint (push) Successful in 3m7s

This commit is contained in:
2025-05-14 11:55:29 -04:00
parent e9a3a5885f
commit 5f9ee939d6

View File

@@ -37,13 +37,16 @@ jobs:
run: |
echo "Starting Support Containers"
docker run --rm \
--network "${{ env.JOB_CONTAINER_NAME }}-DatabaseMigrations-network" \
--name ${{ gitea.run_id }}-postgres \
--network "${{ env.JOB_CONTAINER_NAME }}-${{ gitea.job }}-network" \
--name ${{ gitea.job }}-${{ gitea.run_id }}-postgres \
-e POSTGRES_USER=postgres \
-e POSTGRES_PASSWORD=postgres \
-e POSTGRES_DB=postgres \
-p 5432 \
-d postgres:17
echo "Waiting for Postgres to start"
sleep 10
- name: Run Migrations
run: |
@@ -51,9 +54,9 @@ jobs:
--name ${{ gitea.run_id }}-migrate \
--rm \
--volumes-from ${{ env.JOB_CONTAINER_NAME }} \
--network "${{ env.JOB_CONTAINER_NAME }}-DatabaseMigrations-network" \
--network "${{ env.JOB_CONTAINER_NAME }}-${{ gitea.job }}-network" \
-w ${{ github.workspace }} \
siteworxpro/migrate:v4.18.3 -database "postgres://postgres:postgres@${{ gitea.run_id }}-postgres:5432/postgres?sslmode=disable" -path db/migrations up
siteworxpro/migrate:v4.18.3 -database "postgres://postgres:postgres@${{ gitea.job }}-${{ gitea.run_id }}-postgres:5432/postgres?sslmode=disable" -path db/migrations up
- name: Rollback Migrations
run: |
@@ -61,14 +64,14 @@ jobs:
--name ${{ gitea.run_id }}-migrate \
--rm \
--volumes-from ${{ env.JOB_CONTAINER_NAME }} \
--network "${{ env.JOB_CONTAINER_NAME }}-DatabaseMigrations-network" \
--network "${{ env.JOB_CONTAINER_NAME }}-${{ gitea.job }}-network" \
-w ${{ github.workspace }} \
siteworxpro/migrate:v4.18.3 -database "postgres://postgres:postgres@${{ gitea.run_id }}-postgres:5432/postgres?sslmode=disable" -path db/migrations down --all
siteworxpro/migrate:v4.18.3 -database "postgres://postgres:postgres@${{ gitea.job }}-${{ gitea.run_id }}-postgres:5432/postgres?sslmode=disable" -path db/migrations down --all
- name: Tear Down Support Containers
if: always()
run: |
docker stop ${{ gitea.run_id }}-postgres
docker stop ${{ gitea.job }}-${{ gitea.run_id }}-postgres
LibraryAudit:
name: 🛡️ 🔒 Library Audit