Resolve clippy warnings #91
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: Build | |
on: [push, pull_request] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build | |
run: cargo build --verbose --features selftest | |
- name: Run tests | |
run: cargo test --verbose --features selftest | |
- name: Run tests from chess_bench | |
run: | | |
cd .. | |
git clone https://github.com/alex65536/chess_bench | |
mkdir chess_bench/.cargo | |
echo '[patch.crates-io]' > chess_bench/.cargo/config.toml | |
echo 'owlchess = { path = ${{ toJSON(format('{0}/chess', github.workspace)) }} }' >> chess_bench/.cargo/config.toml | |
cd chess_bench | |
cargo test --verbose |