Skip to content

Add unit test coverage for AtoM OIDC Plugin #2

Add unit test coverage for AtoM OIDC Plugin

Add unit test coverage for AtoM OIDC Plugin #2

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 -p ci -w vm.max_map_count=262144
docker compose up -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