[WF:test] Test on pushes and PRs #1
Workflow file for this run
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: test | |
on: | |
push: | |
pull_request: | |
branches: | |
- master | |
workflow_dispatch: | |
jobs: | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- windows-latest | |
- ubuntu-latest | |
name: Testing on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
steps: | |
# Checkout repo | |
- uses: actions/checkout@v4 | |
# Set up Rust and Cargo | |
- name: Set up Rust toolchain | |
uses: dtolnay/rust-toolchain@v1 | |
with: | |
toolchain: 1.77.2 | |
# Run tests | |
- name: Run tests | |
run: cargo test |