Skip to content

Commit

Permalink
cleanup ci
Browse files Browse the repository at this point in the history
  • Loading branch information
kilork committed Mar 30, 2024
1 parent b6d5d4d commit 25bc34d
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,6 @@ env:

jobs:
integration:
# services:
# keycloak:
# image: quay.io/keycloak/keycloak:24.0.2
# env:
# KEYCLOAK_ADMIN: admin
# KEYCLOAK_ADMIN_PASSWORD: password
# ports:
# - "8080:8080"
# options: --entrypoint "kc.sh start-dev"

runs-on: ubuntu-latest

steps:
Expand All @@ -30,9 +20,8 @@ jobs:
run: cargo build
- name: Run unit tests
run: cargo test
- name: Start keycloak
run: |
docker run -p 8080:8080 -e KEYCLOAK_ADMIN=admin -e KEYCLOAK_ADMIN_PASSWORD=password quay.io/keycloak/keycloak:24.0.2 start-dev &
for attempt in {1..20}; do sleep 5; if netstat -ltn | grep -c 8080; then echo ready; break; fi; echo waiting...; done
- name: Run integration tests
run: cargo run --example=adduser
run: |
docker run -p 8080:8080 --name keycloak -e KEYCLOAK_ADMIN=admin -e KEYCLOAK_ADMIN_PASSWORD=password quay.io/keycloak/keycloak:24.0.2 start-dev &
sleep 120
cargo run --example=adduser

0 comments on commit 25bc34d

Please sign in to comment.