Small changes based on azkr feedback #109
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: Run tests | |
on: | |
# Run on any PR | |
pull_request: | |
branches: | |
- main | |
types: | |
- opened | |
- reopened | |
- synchronize | |
- ready_for_review | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
if: github.event.pull_request.draft == false | |
steps: | |
- name: Checkout # Clone git repository | |
uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: sudo apt-get install -y llvm clang libclang-dev build-essential libhidapi-dev libudev-dev | |
- name: Install stable toolchain | |
uses: dtolnay/rust-toolchain@stable | |
- name: Execute tests | |
run: cargo test --features=it --no-fail-fast |