Skip to content

Commit

Permalink
Add basic github actions PR checks
Browse files Browse the repository at this point in the history
  • Loading branch information
robbie-c committed Jan 6, 2025
1 parent a91cf8b commit 3be98b7
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Test PR

on:
pull_request

jobs:
test:
name: Run Tests
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Rust
run: |
rustup update stable
rustup default stable
rustup component add rustfmt clippy
- name: Print Rust version
run: rustc --version

- name: Build
run: cargo build --verbose

- name: Test
run: cargo test --verbose

- name: Check formatting
run: cargo fmt -- --check

- name: Clippy
run: cargo clippy -- -D warnings

0 comments on commit 3be98b7

Please sign in to comment.