From 79b73ee75ca0c2b47379995caf03edcf0bdb7053 Mon Sep 17 00:00:00 2001 From: Martin Frost Date: Wed, 18 Aug 2021 22:35:02 +0200 Subject: [PATCH] Add CI workflow for linting and tests --- .github/workflows/ci.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..befe15d --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,23 @@ +on: push + +name: CI + +jobs: + lint_and_test: + name: lint and test + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + components: clippy, rustfmt + - uses: actions-rs/clippy-check@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + args: --all-features -- -D warnings + - run: cargo check --workspace --all-features + - run: cargo test --all-targets + - run: cargo fmt --all -- --check