Skip to content

Add integration tests #50

Add integration tests

Add integration tests #50

Workflow file for this run

name: CI
on: [ push, pull_request ]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
rust: [ stable, nightly ]
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
id: toolchain
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
components: rustfmt, clippy
- name: clippy
if: matrix.os == 'ubuntu-latest' && matrix.rust == 'stable'
uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings
- name: cache cargo binaries
id: cache
uses: actions/cache@v2
with:
path: "/usr/share/rust/.cargo"
key: ${{ runner.os }}-cargo-bins-${{ env.GITHUB_SHA }}
restore-keys: ${{ runner.os }}-cargo-bins-
- name: install tools
if: steps.cache.outputs.cache_hit != 'true'
uses: actions-rs/cargo@v1
with:
command: install
args: cargo-all-features
- name: Run Tests
uses: actions-rs/cargo@v1
with:
command: test-all-features