-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (32 loc) · 841 Bytes
/
Copy pathpull_request.yml
File metadata and controls
32 lines (32 loc) · 841 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Pull Request Checks
on:
pull_request:
branches:
- main
- dev
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
# Checkout the repository
- name: Checkout code
uses: actions/checkout@v3
# Install Rust toolchain
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
# Install nextest
- name: Install cargo-nextest
uses: taiki-e/install-action@cargo-nextest
# Run Clippy (linting)
- name: Run Clippy
run: cargo clippy --all-targets -- -D warnings
# Check code formatting
- name: Check formatting
run: cargo fmt --all --check
# Run tests with cargo-nextest
- name: Run Tests
run: cargo nextest run