feat: add just and ci #6
Workflow file for this run
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: cargo fmt, clippy and test on PR | |
on: | |
pull_request: | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
check: | |
name: check fmt and clippy | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Use the rust-toolchain | |
uses: actions-rust-lang/setup-rust-toolchain@v1 | |
- name: Install dependencies | |
shell: bash | |
run: | | |
sudo apt-get install g++ pkg-config libx11-dev libasound2-dev libudev-dev libxkbcommon-x11-0 | |
- name: Check fmt | |
uses: actions-rust-lang/rustfmt@v1 | |
- name: Check clippy | |
run: cargo clippy | |
- name: Check test | |
run: cargo test --all-features |