Skip to content

chore: use released versions of yew-nested-router #88

chore: use released versions of yew-nested-router

chore: use released versions of yew-nested-router #88

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
check:
runs-on: ubuntu-22.04
strategy:
matrix:
toolchain:
- stable
# minimum version: because of "clap_lex"
- "1.70"
steps:
- uses: actions/checkout@v3
- name: Install Rust ${{ matrix.toolchain }}
run: |
rustup toolchain install ${{ matrix.toolchain }} --component rustfmt,clippy --target wasm32-unknown-unknown
rustup default ${{ matrix.toolchain }}
- uses: actions/cache@v3
with:
path: |
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ matrix.toolchain }}-${{ hashFiles('**/Cargo.toml') }}
- name: Run cargo fmt
run: |
cargo fmt --all -- --check
- name: Install cargo check-all
run: |
cargo install cargo-all-features --force
- name: Run cargo check
run: |
cargo check-all-features --target wasm32-unknown-unknown
- name: Run cargo test
run: |
cargo test-all-features
- name: Run cargo clippy
run: |
cargo clippy --target wasm32-unknown-unknown -- -D warnings
examples:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: |
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-examples-${{ matrix.toolchain }}-${{ hashFiles('**/Cargo.toml') }}
- name: Check (yew-oauth2-example)
run: |
cd yew-oauth2-example
cargo check
cargo check --features openid
- name: Check (yew-oauth2-redirect-example)
run: |
cd yew-oauth2-redirect-example
cargo check
cargo check --features openid