CI: test on Windows #24
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
--- | |
# configuration for GitHub Actions | |
name: rerobots Rust client library tests | |
on: | |
push: | |
pull_request: | |
jobs: | |
build: | |
name: Build and test | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ | |
ubuntu-22.04, | |
macos-latest, | |
windows-latest, | |
] | |
steps: | |
- uses: actions/checkout@v4 | |
- run: rustup toolchain install stable --profile minimal | |
- uses: Swatinem/rust-cache@v2 | |
- name: Prepare to build | |
run: | | |
mkdir keys | |
touch keys/public.pem | |
- name: Lint | |
if: runner.os != 'Windows' | |
run: | | |
cargo fmt --check | |
cargo check | |
cargo clippy --tests -- -D clippy::all | |
- name: Run tests | |
run: | | |
cargo test |