summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorkomaeda <marisa@mokou.zone>2019-08-21 13:23:38 +0200
committerGitHub <noreply@github.com>2019-08-21 13:23:38 +0200
commit17690b3add2099d624cf8b4b3d90e181f4040063 (patch)
tree6370e390dec076117be0be8dbcb7e2868215b027 /.github
parentf9987c8bed3fb7e376c2c21fa2d2c3731e69e2df (diff)
chore(ci): Add GitHub Actions CI file
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/main.yml22
1 files changed, 22 insertions, 0 deletions
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