mirror of
https://github.com/pfzetto/axum-oidc.git
synced 2024-12-05 01:07:15 +01:00
35 lines
743 B
YAML
35 lines
743 B
YAML
|
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 }}
|
||
|
- run: cargo build --verbose
|
||
|
- run: cargo test --verbose
|
||
|
|
||
|
build_examples:
|
||
|
name: axum-oidc - examples
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- uses: actions/checkout@v3
|
||
|
- run: rustup update stable && rustup default stable
|
||
|
- run: cargo build --verbose
|
||
|
working-directory: ./examples/basic
|