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

26 lines
473 B
YAML
Raw Normal View History

2023-10-13 02:02:43 +00:00
name: pr
on:
pull_request:
branches: ["main"]
env:
CARGO_TERM_COLOR: always
jobs:
2023-10-13 02:02:43 +00:00
build:
runs-on: ubuntu-latest
2023-05-23 04:43:48 +00:00
steps:
- uses: actions/checkout@v3
2023-05-23 04:43:48 +00:00
# Install Rust with clippy/rustfmt
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: clippy, rustfmt
2023-05-23 19:04:27 +00:00
# Make sure u guys don't write bad code
- run: cargo test --verbose
- run: cargo clippy --no-deps
- run: cargo fmt --check