Merge pull request #16 from szabgab/patch-1 #32
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Run Tests | |
on: | |
pull_request: | |
types: ['edited', 'opened', 'reopened', 'synchronize'] | |
push: | |
branches: ['main'] | |
jobs: | |
build_matrix: | |
name: Run tests for ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
name: [linux, windows, macos] | |
include: | |
- name: linux | |
os: ubuntu-latest | |
- name: windows | |
os: windows-latest | |
- name: macos | |
os: macOS-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Stable with rustfmt and clippy | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
components: clippy | |
- name: Run tests | |
env: | |
RUST_BACKTRACE: full | |
run: | | |
cargo test | |
cargo clippy |