CI #2
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: CI | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
- uses: Swatinem/rust-cache@v2 | |
- name: Run Tests | |
run: cargo test --all --verbose | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
- name: Install Clippy and Rustfmt | |
run: rustup component add clippy rustfmt | |
- uses: Swatinem/rust-cache@v2 | |
- name: Check Formatting | |
run: cargo fmt --all -- --check | |
- name: Run Clippy | |
run: cargo clippy - | |