Skip to content

some in-progress posts #56

some in-progress posts

some in-progress posts #56

Workflow file for this run

name: main
on:
push:
branches: ["main"]
pull_request:
branches: ["**"]
concurrency:
group: main-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
rust-version: [stable, beta, nightly]
fail-fast: false
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust-version }}
default: true
- uses: actions/cache@v3
with:
path: |
~/.cargo/
./build/
key: test-cargo-${{matrix.rust-version}}-${{ hashFiles('**/Cargo.lock') }}
restore-keys: test-cargo-${{matrix.rust-version}}-
- run: cargo test
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: clippy, rustfmt
default: true
- uses: actions/cache@v3
with:
path: |
~/.cargo/
./build/
key: lint-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: lint-cargo-
- run: cargo fmt -- --check
- run: cargo clippy