Skip to content

Only run CI tests on pull request and push to main #84

Only run CI tests on pull request and push to main

Only run CI tests on pull request and push to main #84

Workflow file for this run

name: test suite
on:
pull_request
push:

Check failure on line 4 in .github/workflows/test-suite.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/test-suite.yml

Invalid workflow file

You have an error in your yaml syntax on line 4
branches:
- main
jobs:
test:
name: cargo test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: cargo test --all-features
test-macos:
name: cargo test on MacOS
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: cargo test --all-features
test-windows:
name: cargo test on Windows
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: cargo test --all-features