Update to version 0.3.2 #94
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
# Build platform and run tests | |
# Took inspiration from the following: | |
# https://infinyon.com/blog/2021/04/github-actions-best-practices/ | |
# https://github.com/infinyon/fluvio/blob/master/.github/workflows/ci.yml | |
# https://github.com/clap-rs/clap/blob/master/.github/workflows/ci.yml | |
name: CI | |
on: | |
push: | |
branches: [main] | |
paths: | |
- "**" | |
- "!/*.md" | |
- "!/**.md" | |
pull_request: | |
branches: [main] | |
paths: | |
- "**" | |
- "!/*.md" | |
- "!/**.md" | |
jobs: | |
build: | |
name: Build on (${{ matrix.os }}) | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
env: | |
RUST_BACKTRACE: full | |
RELEASE: true | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Rust Stable | |
uses: dtolnay/rust-toolchain@stable | |
- name: Build | |
run: cargo test --all-targets --no-run | |
- name: Test | |
run: cargo test | |
# TODO maybe we should have a light version of the benches that we can run for pushes to main (not PRs) | |
# - name: Test | |
# run: cargo test --workspace --benches |