Skip to content

feat: app

feat: app #1

Workflow file for this run

name: CI
env:
CARGO_TERM_COLOR: always
on:
push:
branches:
- main
pull_request: {}
workflow_dispatch: null
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
- uses: Swatinem/rust-cache@v2
- name: Check
run: cargo clippy --all-targets --all-features -- -D warnings
- name: rustfmt
run: cargo fmt --all --check
test-versions:
needs: check
runs-on: ubuntu-latest
strategy:
matrix:
rust: [stable, beta]
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
- uses: Swatinem/rust-cache@v2
- name: Run tests
run: cargo test --all-features --all-targets