From 44ec726db1a6b2b3adb41fe51e40aa2bfd92319c Mon Sep 17 00:00:00 2001 From: rhysd Date: Wed, 8 Jun 2022 20:53:25 +0900 Subject: [PATCH] prepare CI workflow --- .github/workflows/ci.yml | 19 +++++++++++++++++++ 1 file changed, 19 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..1ec1b87 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,19 @@ +name: CI +on: [push, pull_request] + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + components: rustfmt, clippy + override: true + - uses: Swatinem/rust-cache@v1 + - name: rustfmt + run: cargo fmt -- --check --color always + # - name: clippy + # run: cargo clippy --color always -- -D warnings