Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 67 additions & 0 deletions .github/workflows/pull_request.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: Pull Request

concurrency:
group: ${{ github.ref }}
cancel-in-progress: true

defaults:
run:
shell: bash

on:
pull_request:
branches:
- "main"

jobs:
test:
name: 🧪 Test
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v7
- run: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y && echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- uses: Swatinem/rust-cache@v2
- run: cargo test

platform:
name: 🧪 Test (${{ matrix.runner }})
strategy:
fail-fast: false
matrix:
runner:
- macos-15
- windows-latest
runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@v7
- run: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y && echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- uses: Swatinem/rust-cache@v2
- run: cargo test

format:
name: 📝 Format
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v7
- run: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y && echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- uses: Swatinem/rust-cache@v2
- run: cargo install cargo-xfmt
- run: cargo xfmt --check

lint:
name: 🤓 Lint
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v7
- run: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y && echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- uses: Swatinem/rust-cache@v2
- run: cargo clippy --all-targets --workspace -- -D warnings

build:
name: 🔨 Build
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v7
- run: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y && echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- uses: Swatinem/rust-cache@v2
- run: cargo build
Loading
Loading