Skip to content

Merge pull request #16 from szabgab/patch-1 #32

Merge pull request #16 from szabgab/patch-1

Merge pull request #16 from szabgab/patch-1 #32

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