Skip to content

Add qa workflow

Add qa workflow #3

Workflow file for this run

name: 'qa'

Check failure on line 1 in .github/workflows/qa.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/qa.yaml

Invalid workflow file

`pull-request` is not a valid event name
on: [push, pull-request]
jobs:
tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-22.04, windows-2022, macos-14]
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: 'Install toolchain'
uses: dtolnay/rust-toolchain@stable
- name: 'Test'
run: cargo test --all-targets
formatting:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: 'Install toolchain'
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- name: 'Check Formatting'
run: |
cargo fmt -- --check