feat: automated integration test for example/basic

Adds automated CI integration tests to the basic example.
The integration tests launch and configure a keycloak server, launch the
example and test its functionality with a headless browser.
This commit is contained in:
Paul Zinselmeyer 2024-04-21 01:21:36 +02:00
parent c9f63180b3
commit e62aba722c
Signed by: pfzetto
GPG key ID: B471A1AF06C895FD
7 changed files with 402 additions and 80 deletions

View file

@ -21,14 +21,17 @@ jobs:
steps:
- uses: actions/checkout@v3
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- run: cargo build --verbose
- run: cargo test --verbose
- run: cargo build --verbose --release
- run: cargo test --verbose --release
build_examples:
build_and_test_examples:
name: axum-oidc - examples
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: sudo apt install chromium-browser -y
- run: rustup update stable && rustup default stable
- run: cargo build --verbose
- run: cargo build --verbose --release
working-directory: ./examples/basic
- run: cargo test --verbose --release
working-directory: ./examples/basic