Add OIDC integration test #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: OIDC integration tests | |
on: | |
pull_request: | |
push: | |
branches: | |
- qa/** | |
- stable/** | |
- dev/oidc-tests | |
jobs: | |
integration-tests: | |
runs-on: ubuntu-20.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
browser: [Chrome, Electron, Firefox] | |
name: ${{ matrix.browser }} | |
env: | |
COMPOSE_FILE: ${{ github.workspace }}/docker/docker-compose.dev.yml | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
- name: Start containerized services | |
run: | | |
sudo sysctl -w vm.max_map_count=262144 | |
docker compose up -p ci -d percona elasticsearch gearmand | |
- name: Launch Keycloak service | |
run: | | |
docker-compose -p ci -f /docker/docker-compose.keycloak.yml up -d | |
- name: Wait for Keycloak to be Ready | |
run: | | |
echo "Waiting for Keycloak to be ready..." | |
for i in {1..30}; do | |
if nc -z localhost 8080; then | |
echo "Keycloak is up!" | |
break | |
fi | |
echo "Waiting for Keycloak..." | |
sleep 5 | |
done |