Skip to content

Commit

Permalink
Add CI workflow (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelsproul authored Jun 19, 2023
1 parent abe0ff8 commit fef24f9
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/test-suite.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: test-suite

on:
push:
branches:
- main
- 'pr/*'
pull_request:
env:
# Deny warnings in CI
RUSTFLAGS: "-D warnings"
jobs:
cargo-fmt:
name: cargo-fmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Get latest version of stable Rust
run: rustup update stable
- name: Check formatting with cargo fmt
run: cargo fmt --all -- --check
test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
name: test-${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Get latest version of stable Rust
run: rustup update stable
- name: Run tests
run: cargo test --release
- name: Check all examples, binaries, etc
run: cargo check --all-targets

0 comments on commit fef24f9

Please sign in to comment.