mirror of
https://codeberg.org/pfzetto/axum-oidc
synced 2025-12-08 06:05:16 +01:00
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:
parent
c9f63180b3
commit
e62aba722c
7 changed files with 402 additions and 80 deletions
11
.github/workflows/ci.yml
vendored
11
.github/workflows/ci.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue