diff options
author | Usairim Isani <usairim.isani@outlook.com> | 2020-07-27 20:24:44 +0500 |
---|---|---|
committer | Usairim Isani <usairim.isani@outlook.com> | 2020-07-27 20:24:44 +0500 |
commit | fc41fbc57fade86cce5d30b683145dc86054c06f (patch) | |
tree | 0e8a516fae9d95b859346fb0e7b2dff479dbbfa5 /.github/workflows/rust.yml | |
parent | e46101071ee2e1867a3b9b66ab8ae113f1974b56 (diff) |
Github workflows and Test Badge.
Diffstat (limited to '.github/workflows/rust.yml')
-rw-r--r-- | .github/workflows/rust.yml | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml new file mode 100644 index 0000000..fe19c40 --- /dev/null +++ b/.github/workflows/rust.yml @@ -0,0 +1,32 @@ +name: Rust + +on: + push: + branches: [master] + pull_request: + branches: [master] + +jobs: + check: + name: Rust ${{ matrix.rust }} + runs-on: ubuntu-latest + strategy: + matrix: + rust: [1.41.0, stable, beta] + steps: + - uses: actions/checkout@v2 + - name: Install minimal ${{ matrix.rust }} rust + uses: actions-rs/toolchain@b2417cd + with: + override: true + profile: minimal + toolchain: ${{ matrix.rust }} + - run: cargo -Vv && rustc -Vv + - run: cargo check + - run: cargo check --all-features + - run: cargo clippy -- -Dwarnings -Dclippy::dbg_macro + if: ${{ matrix.rust == 'stable' }} + - run: cargo fmt --all -- --check + if: ${{ matrix.rust == 'stable' }} + - run: cargo test + if: ${{ matrix.rust == 'stable' }} |