2024-03-08 17:17:00 +01:00
|
|
|
name: Cargo Build & Test
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
pull_request:
|
|
|
|
schedule:
|
|
|
|
- cron: '0 0 1,7,14,21 * *'
|
|
|
|
|
|
|
|
env:
|
|
|
|
CARGO_TERM_COLOR: always
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build_and_test:
|
|
|
|
name: axum-oidc - latest
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
toolchain:
|
|
|
|
- stable
|
|
|
|
- nightly
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
|
2024-04-21 01:21:36 +02:00
|
|
|
- run: cargo build --verbose --release
|
|
|
|
- run: cargo test --verbose --release
|
2024-03-08 17:17:00 +01:00
|
|
|
|
2024-04-21 01:21:36 +02:00
|
|
|
build_and_test_examples:
|
2024-03-08 17:17:00 +01:00
|
|
|
name: axum-oidc - examples
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
2024-04-21 01:21:36 +02:00
|
|
|
- run: sudo apt install chromium-browser -y
|
2024-03-08 17:17:00 +01:00
|
|
|
- run: rustup update stable && rustup default stable
|
2024-04-21 01:21:36 +02:00
|
|
|
- run: cargo build --verbose --release
|
|
|
|
working-directory: ./examples/basic
|
|
|
|
- run: cargo test --verbose --release
|
2024-03-08 17:17:00 +01:00
|
|
|
working-directory: ./examples/basic
|