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`, `cargo fmt --all -- --check`, and `sudo
cargo test`.
  • Loading branch information
rcloran committed Sep 8, 2023
1 parent 883621e commit 8553dc2
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
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
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: cargo build --tests
- run: sudo -E .cargo/bin/cargo test

0 comments on commit 8553dc2

Please sign in to comment.