Skip to content

Commit

Permalink
Add a basic CI workflow
Browse files Browse the repository at this point in the history
Just a simple `cargo check` and `cargo fmt --all -- --check`.
  • Loading branch information
rcloran committed Sep 8, 2023
1 parent 883621e commit 3b7be60
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
name: Rust CI

on:
pull_request:
push:
branches:
- main

jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: cargo check
fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: cargo fmt --all -- --check

0 comments on commit 3b7be60

Please sign in to comment.