Try some things
Some checks failed
CI/CD Pipeline Simplified / test-backend (push) Failing after 23s
Some checks failed
CI/CD Pipeline Simplified / test-backend (push) Failing after 23s
This commit is contained in:
parent
3850e015e7
commit
c6053793f5
1 changed files with 10 additions and 10 deletions
|
@ -37,10 +37,10 @@ jobs:
|
|||
- name: Verify Podman access
|
||||
run: |
|
||||
echo "Checking Podman socket..."
|
||||
ls -la /podman-host/
|
||||
test -S /podman-host/podman.sock && echo "Socket exists" || echo "Socket missing"
|
||||
podman --url unix:///podman-host/podman.sock info
|
||||
podman --url unix:///podman-host/podman.sock ps
|
||||
ls -la /run/user/999/podman/
|
||||
test -S /run/user/999/podman/podman.sock && echo "Socket exists" || echo "Socket missing"
|
||||
podman --url unix:///run/user/999/podman/podman.sock info
|
||||
podman --url unix:///run/user/999/podman/podman.sock ps
|
||||
|
||||
- name: Verify pinned digests
|
||||
run: |
|
||||
|
@ -50,11 +50,11 @@ jobs:
|
|||
done
|
||||
|
||||
- name: Create internal network
|
||||
run: podman --url unix:///podman-host/podman.sock network create --internal integ-${{ env.RUN_ID }}
|
||||
run: podman --url unix:///run/user/999/podman/podman.sock network create --internal integ-${{ env.RUN_ID }}
|
||||
|
||||
- name: Start PostgreSQL
|
||||
run: |
|
||||
podman --url unix:///podman-host/podman.sock run -d \
|
||||
podman --url unix:///run/user/999/podman/podman.sock run -d \
|
||||
--name test-postgres-${{ env.RUN_ID }} \
|
||||
--network integ-${{ env.RUN_ID }} \
|
||||
-e POSTGRES_PASSWORD=password \
|
||||
|
@ -65,14 +65,14 @@ jobs:
|
|||
- name: Wait for PostgreSQL
|
||||
run: |
|
||||
timeout 60 bash -c '
|
||||
until podman --url unix:///podman-host/podman.sock exec test-postgres-${{ env.RUN_ID }} pg_isready -h 127.0.0.1 -p 5432 -U postgres; do
|
||||
until podman --url unix:///run/user/999/podman/podman.sock exec test-postgres-${{ env.RUN_ID }} pg_isready -h 127.0.0.1 -p 5432 -U postgres; do
|
||||
sleep 1
|
||||
done
|
||||
'
|
||||
|
||||
- name: Run backend tests
|
||||
run: |
|
||||
podman --url unix:///podman-host/podman.sock run --rm \
|
||||
podman --url unix:///run/user/999/podman/podman.sock run --rm \
|
||||
-v "$PWD":/workspace \
|
||||
-w /workspace \
|
||||
--network integ-${{ env.RUN_ID }} \
|
||||
|
@ -83,5 +83,5 @@ jobs:
|
|||
- name: Cleanup
|
||||
if: always()
|
||||
run: |
|
||||
podman --url unix:///podman-host/podman.sock rm -f test-postgres-${{ env.RUN_ID }} 2>/dev/null || true
|
||||
podman --url unix:///podman-host/podman.sock network rm integ-${{ env.RUN_ID }} 2>/dev/null || true
|
||||
podman --url unix:///run/user/999/podman/podman.sock rm -f test-postgres-${{ env.RUN_ID }} 2>/dev/null || true
|
||||
podman --url unix:///run/user/999/podman/podman.sock network rm integ-${{ env.RUN_ID }} 2>/dev/null || true
|
Loading…
Add table
Reference in a new issue