monolith/.github/workflows/ci.yml

50 lines
882 B
YAML
Raw Permalink Normal View History

# CI GitHub Actions workflow for monolith
2020-04-04 23:08:19 +02:00
name: CI
2020-04-04 21:30:13 +02:00
on:
pull_request:
branches: [ master ]
paths-ignore:
- 'assets/'
- 'dist/'
- 'docs/'
- 'snap/'
- '.adr-dir'
- 'Dockerfile'
- 'LICENSE'
- 'Makefile'
- 'monolith.nuspec'
- 'README.md'
2020-04-04 21:30:13 +02:00
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:
- run: git config --global core.autocrlf false
2020-04-04 21:30:13 +02:00
- uses: actions/checkout@v2
2020-04-04 21:30:13 +02:00
- name: Build
run: cargo build --all --locked --verbose
2020-04-04 21:30:13 +02:00
- name: Run tests
run: cargo test --all --locked --verbose
2020-04-04 21:30:13 +02:00
- name: Check code formatting
2020-05-01 01:45:44 +02:00
run: |
rustup component add rustfmt
cargo fmt --all -- --check