From e68bb04642dde9dd5f6656e4f83ccd375f42f0cd Mon Sep 17 00:00:00 2001 From: Vladimir Borisov Date: Mon, 3 Oct 2022 09:33:55 +0300 Subject: [PATCH] Test workflow --- .github/workflows/test.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..310f82f --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,27 @@ +name: Continuous integration + +on: [pull_request, push] + +jobs: + test: + runs-on: windows-latest + steps: + # The Windows runners have autocrlf enabled by default + # which causes failures for some of rustfmt's line-ending sensitive tests + - name: disable git eol translation + run: git config --global core.autocrlf false + - name: checkout + uses: actions/checkout@v3 + - name: Stable with rustfmt and clippy + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + components: rustfmt, clippy + - name: Lint code format + run: cargo fmt --all -- --check + - name: Lint code + run: cargo clippy --all -- -D warnings + - name: Test + run: cargo test +