Skip to content

run keycloak directly #8

run keycloak directly

run keycloak directly #8

Workflow file for this run

name: Integration Test
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
CARGO_TERM_COLOR: always
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:
- uses: actions/checkout@v4
- uses: dtolnay/[email protected]
- name: Build
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 1; if netstat -ltn | grep -c 9083; then echo ready; break; fi; echo waiting...; done
- name: Run integration tests
run: cargo run --example=adduser