Skip to content

poe: updates ci, fixes nightly clippy lints #431

poe: updates ci, fixes nightly clippy lints

poe: updates ci, fixes nightly clippy lints #431

Workflow file for this run

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