2021-10-17 04:48:32 +00:00
|
|
|
# CI GitHub Actions workflow for monolith
|
|
|
|
|
2020-04-04 21:08:19 +00:00
|
|
|
name: CI
|
2020-04-04 19:30:13 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches: [ master ]
|
2021-10-21 01:31:54 +00:00
|
|
|
paths-ignore:
|
|
|
|
- 'assets/'
|
|
|
|
- 'dist/'
|
|
|
|
- 'docs/'
|
|
|
|
- 'snap/'
|
|
|
|
- '.adr-dir'
|
|
|
|
- 'Dockerfile'
|
|
|
|
- 'LICENSE'
|
|
|
|
- 'Makefile'
|
|
|
|
- 'monolith.nuspec'
|
|
|
|
- 'README.md'
|
2020-04-04 19:30:13 +00:00
|
|
|
|
|
|
|
jobs:
|
2020-04-04 21:08:19 +00:00
|
|
|
build_and_test:
|
2020-04-04 19:30:13 +00:00
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os:
|
|
|
|
- ubuntu-latest
|
|
|
|
- macos-latest
|
|
|
|
- windows-latest
|
|
|
|
rust:
|
|
|
|
- stable
|
|
|
|
- beta
|
|
|
|
- nightly
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
|
|
|
|
steps:
|
2020-04-04 19:42:53 +00:00
|
|
|
- run: git config --global core.autocrlf false
|
2021-10-21 01:31:54 +00:00
|
|
|
|
2020-04-04 19:30:13 +00:00
|
|
|
- uses: actions/checkout@v2
|
2021-10-21 01:31:54 +00:00
|
|
|
|
2020-04-04 19:30:13 +00:00
|
|
|
- name: Build
|
|
|
|
run: cargo build --all --locked --verbose
|
2021-10-21 01:31:54 +00:00
|
|
|
|
2020-04-04 19:30:13 +00:00
|
|
|
- name: Run tests
|
|
|
|
run: cargo test --all --locked --verbose
|
2021-10-21 01:31:54 +00:00
|
|
|
|
2020-04-04 19:30:13 +00:00
|
|
|
- name: Check code formatting
|
2020-04-30 23:45:44 +00:00
|
|
|
run: |
|
|
|
|
rustup component add rustfmt
|
|
|
|
cargo fmt --all -- --check
|