Skip to content

cicd: fix authenticate tests #3144

cicd: fix authenticate tests

cicd: fix authenticate tests #3144

name: Authenticate
on:
push:
branches:
- main
- 'branch-*'
pull_request:
branches:
- main
- 'branch-*'
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: full
DOCKER_COMPOSE_VERSION: 2.32.4
jobs:
build:
name: Run Authentication tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Update rust toolchain
run: rustup update
- name: Start the cluster
run: docker compose -f test/cluster/docker-compose-passauth.yml up -d
- name: Run tests
run: RUST_LOG=trace cargo test --verbose authenticate_superuser -- custom_authentication --ignored
- name: Stop the cluster
if: ${{ always() }}
run: docker compose -f test/cluster/docker-compose-passauth.yml stop
- name: Print the cluster logs
if: ${{ always() }}
run: docker compose -f test/cluster/docker-compose-passauth.yml logs