aboutsummaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/main.yml24
1 files changed, 24 insertions, 0 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
new file mode 100644
index 0000000..cbee315
--- /dev/null
+++ b/.github/workflows/main.yml
@@ -0,0 +1,24 @@
+name: main
+on:
+ - pull_request
+ - push
+jobs:
+ main:
+ name: ${{matrix.rust}}
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions-rs/toolchain@v1
+ with:
+ toolchain: ${{matrix.rust}}
+ components: rustfmt, clippy
+ - run: cargo clippy -- -W clippy::pedantic
+ - run: cargo fmt --all -- --check
+ - run: cargo test
+ - run: cargo install cargo-tarpaulin && cargo tarpaulin --out Xml
+ - uses: codecov/codecov-action@v1
+ strategy:
+ matrix:
+ rust:
+ - stable
+ - beta