1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
CARGO_TERM_COLOR: always
jobs:
format_and_docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Cargo fmt
run: cargo fmt -- --check
- name: Cargo doc
run: cargo doc
build_and_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build lib, tests, and examples
run: cargo build --all-targets --release
- name: Build test inputs
run: ./tests/create-inputs.sh
- name: Run tests
run: cargo test --release
|