37 lines
791 B
YAML
37 lines
791 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: ['master']
|
|
pull_request:
|
|
|
|
jobs:
|
|
Test:
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest]
|
|
rust: [1.36.0, stable, beta, nightly]
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions-rs/toolchain@v1
|
|
with:
|
|
profile: minimal
|
|
toolchain: ${{ matrix.rust }}
|
|
override: true
|
|
- uses: actions-rs/cargo@v1
|
|
with:
|
|
command: build
|
|
args: --all-targets
|
|
- uses: actions-rs/cargo@v1
|
|
with:
|
|
command: test
|
|
- uses: actions-rs/cargo@v1
|
|
with:
|
|
command: test
|
|
args: --features "serde"
|
|
- uses: actions-rs/cargo@v1
|
|
with:
|
|
command: test
|
|
args: --no-default-features
|