poe: updates ci, fixes nightly clippy lints #431
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: [workflow_dispatch, push, pull_request] | |
name: CI | |
env: | |
nightly: nightly | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: rustup toolchain install stable --profile minimal --no-self-update | |
- uses: Swatinem/rust-cache@v2 | |
- run: mkdir app/dist && touch app/dist/index.html | |
- name: Test | |
run: cargo test --all-features | |
fmt: | |
name: Rustfmt | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: rustup toolchain install ${{ env.nightly }} --profile minimal --component rustfmt --no-self-update | |
- name: Rustfmt | |
run: cargo +nightly fmt --all -- --check | |
clippy: | |
name: Clippy | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Rust Toolchain | |
run: rustup toolchain install stable --profile minimal --component clippy --no-self-update | |
- uses: Swatinem/rust-cache@v2 | |
- run: mkdir app/dist && touch app/dist/index.html | |
- name: Clippy | |
run: cargo clippy --all-features -- -D warnings |