album/.github/workflows/ci.yml

37 lines
967 B
YAML
Raw Permalink Normal View History

2021-01-11 01:32:53 +04:00
# Based on https://github.com/actions-rs/meta/blob/master/recipes/msrv.md
on: [push, pull_request]
name: CI
jobs:
rustfmt:
2021-01-11 01:32:53 +04:00
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
2021-01-11 01:32:53 +04:00
with:
components: rustfmt
- run: echo "::add-matcher::.github/workflows/rust-problem-matcher.json"
- run: cargo fmt --all -- --check
2021-01-11 01:32:53 +04:00
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
2021-01-11 01:32:53 +04:00
with:
components: clippy
- run: echo "::add-matcher::.github/workflows/rust-problem-matcher.json"
- run: cargo clippy --all-features
2021-01-11 01:32:53 +04:00
test:
name: Test Suite
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- run: echo "::add-matcher::.github/workflows/rust-problem-matcher.json"
- run: cargo test -q