π§ Add INCLUDE keycloak config to smilecdr #183
Workflow file for this run
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: β Test | |
on: | |
pull_request: | |
types: [opened, reopened, edited, synchronize, closed] | |
concurrency: | |
group: ci-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
env: | |
GITHUB_PAT_SMILECDR: ${{ secrets.GH_PAT_SMILECDR }} | |
GITHUB_USERNAME: ${{ secrets.GH_USERNAME }} | |
jobs: | |
test-dev-setup: | |
runs-on: ubuntu-20.04 | |
timeout-minutes: 10 | |
permissions: | |
packages: read | |
steps: | |
- name: π©βπ» Checkout code | |
uses: actions/checkout@v3 | |
- name: π Setup Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.8' | |
- name: π¦ Install deps | |
run: | | |
pip install --upgrade virtualenv | |
- name: β Test quickstart | |
run: | | |
./src/bin/quickstart.sh --delete-volumes | |
test-local-integration: | |
runs-on: ubuntu-20.04 | |
timeout-minutes: 10 | |
permissions: | |
packages: read | |
steps: | |
- name: π©βπ» Checkout code | |
uses: actions/checkout@v3 | |
- name: π³ Start docker-compose | |
run: | | |
cp env.sample .env | |
source .env | |
echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin | |
docker-compose pull --ignore-pull-failures | |
docker-compose up -d | |
- name: π Healthcheck | |
run: | | |
source .env | |
./src/bin/health-check.sh | |
- name: π Setup Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.8' | |
- name: π¦ Install deps | |
run: | | |
pip install --upgrade virtualenv | |
virtualenv -p python3 venv | |
source venv/bin/activate | |
pip install -r dev-requirements.txt | |
pip install -e . | |
- name: β Local Integration Test | |
run: | | |
source venv/bin/activate | |
pytest tests | |
test-smilecdr-auth: | |
runs-on: ubuntu-20.04 | |
timeout-minutes: 10 | |
steps: | |
- name: π©βπ» Checkout code | |
uses: actions/checkout@v3 | |
- name: π¦ Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16.15.0' | |
- name: π¦ Install deps | |
run: | | |
npm install --prefix ./tests/javascript | |
- name: β Test auth module | |
run: | | |
./bin/run_js_tests.sh | |