moq-rs/.github/workflows/check.yml

30 lines
555 B
YAML
Raw Permalink Normal View History

2023-09-17 06:58:38 +00:00
name: Test & Lint
on:
2023-09-17 06:58:38 +00:00
pull_request:
branches: ["main"]
env:
2023-09-17 06:58:38 +00:00
CARGO_TERM_COLOR: always
jobs:
2023-09-17 06:58:38 +00:00
check:
runs-on: ubuntu-latest
2023-09-17 06:58:38 +00:00
steps:
- uses: actions/checkout@v3
2023-05-23 04:43:48 +00:00
2023-09-17 06:58:38 +00:00
- name: toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: clippy, rustfmt
2023-05-23 04:43:48 +00:00
2023-09-17 06:58:38 +00:00
- name: test
run: cargo test --verbose
2023-05-23 04:43:48 +00:00
2023-09-17 06:58:38 +00:00
- name: clippy
run: cargo clippy
2023-05-23 19:04:27 +00:00
2023-09-17 06:58:38 +00:00
- name: fmt
run: cargo fmt --check