mirror of
https://github.com/Y2Z/monolith
synced 2024-11-03 09:40:21 +00:00
33 lines
634 B
YAML
33 lines
634 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
build_and_test:
|
|
|
|
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
|
|
- 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
|