diff options
Diffstat (limited to '.github/workflows/ci.yml')
-rw-r--r-- | .github/workflows/ci.yml | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..8a05d56 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,31 @@ +name: tests + +on: + push: + branches: + - "*" + # not on tags + pull_request: + +env: + RUSTFLAGS: "-D warnings" + RUST_BACKTRACE: "1" + +jobs: + cargo_tests: + name: ${{ matrix.os }} ${{ matrix.rust_channel }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: ["ubuntu-latest", "macOS-latest", "windows-latest"] + rust_channel: [stable, beta, nightly] + + steps: + - uses: actions/checkout@v1 + - uses: actions-rs/toolchain@v1 + with: + toolchain: ${{ matrix.rust_channel }} + profile: minimal + override: true + - run: cargo test |