Skip to content

Commit

Permalink
Add basic CI configuration (#3)
Browse files Browse the repository at this point in the history
This commit adds a basic initial CI configuration. This just adds a
single job that tests a build, runs `cargo fmt` and `cargo clippy` to
ensure consistent formatting and style, and then runs the unittests.
This provides coverage of the repo basics and we can expand and tweak
this over time as the library evolves.
  • Loading branch information
mtreinish authored Jan 9, 2024
1 parent b1b92c8 commit a2a0de0
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
name: Rust

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

env:
CARGO_TERM_COLOR: always

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Rust Format
run: cargo fmt --all -- --check
- name: Build
run: cargo build --verbose
- name: Clippy
run: cargo clippy -- -D warnings
- name: Run tests
run: cargo test --verbose

0 comments on commit a2a0de0

Please sign in to comment.