[feat] Rewrote tool in rust. #20
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: Tests | |
on: | |
workflow_dispatch: | |
pull_request: | |
types: [opened, synchronize, edited, reopened, ready_for_review] | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install Rust | |
run: | | |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y | |
export PATH="$HOME/.cargo/bin:$PATH" | |
- name: Print Rust and Cargo versions | |
run: | | |
rustc --version | |
cargo --version | |
- name: Install Clippy | |
run: rustup component add clippy | |
- name: Run Check | |
run: cargo check | |
- name: Run Clippy | |
run: cargo clippy | |
- name: Run Tests | |
run: cargo test |