2020-04-04 23:08:19 +02:00
|
|
|
name: CI
|
2020-04-04 21:30:13 +02:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ master ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ master ]
|
|
|
|
|
|
|
|
jobs:
|
2020-04-04 23:08:19 +02:00
|
|
|
build_and_test:
|
2020-04-04 21:30:13 +02:00
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os:
|
|
|
|
- ubuntu-latest
|
|
|
|
- macos-latest
|
|
|
|
- windows-latest
|
|
|
|
rust:
|
|
|
|
- stable
|
|
|
|
- beta
|
|
|
|
- nightly
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
|
|
|
|
steps:
|
2020-04-04 21:42:53 +02:00
|
|
|
- run: git config --global core.autocrlf false
|
2020-04-04 21:30:13 +02:00
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Build
|
|
|
|
run: cargo build --all --locked --verbose
|
|
|
|
- name: Run tests
|
|
|
|
run: cargo test --all --locked --verbose
|
|
|
|
- name: Check code formatting
|
|
|
|
run: cargo fmt --all -- --check
|