Skip to content

Commit

Permalink
Add CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
gnarea committed Sep 3, 2024
1 parent 512a80e commit 4c62628
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: CI

on:
push:
branches: [ main ]
pull_request:

jobs:
ci:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4

- name: Install Rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: rustfmt, clippy

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

- name: Clippy
run: cargo clippy

- name: Run tests
run: cargo test

- name: Build
run: cargo build --release

0 comments on commit 4c62628

Please sign in to comment.