From 17690b3add2099d624cf8b4b3d90e181f4040063 Mon Sep 17 00:00:00 2001 From: komaeda Date: Wed, 21 Aug 2019 13:23:38 +0200 Subject: [PATCH] chore(ci): Add GitHub Actions CI file --- .github/workflows/main.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..5d78c4e --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,22 @@ +on: [push, pull_request] + +jobs: + ci: + name: CI + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + with: + fetch-depth: 50 + - name: Install Rust Stable + run: | + rustc -vV + rustup update stable + rustup default stable + rustc -vV + - name: Run rustfmt + run: cargo fmt -- --check + - name: Run clippy + run: cargo clippy -- -Dwarnings + - name: Run tests + run: cargo test --verbose