Added GitHub Actions for run check and test the crate.

This commit is contained in:
Kirill Kuzminykh
2022-10-28 23:17:12 +04:00
parent 1cb430f28e
commit ac064b40b2
+39
View File
@@ -0,0 +1,39 @@
name: Check and Test
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch: {}
env:
CARGO_TERM_COLOR: always
DONT_SAVE_RESULT: 1
jobs:
run_tests:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
name: Test `cargo check/test` on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: Swatinem/rust-cache@v2
- name: Run tests
run: |
cargo check
cargo test --verbose