Skip to content

Commit

Permalink
Add CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Sytten committed Nov 25, 2024
1 parent e1c7ed7 commit 968b06c
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: CI
on:
push:
branches:
- main
pull_request:

concurrency:
group: ci-${{ github.ref_name }}
cancel-in-progress: true

jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true

- name: Setup Rust
uses: dtolnay/rust-toolchain@315e265cd78dad1e1dcf3a5074f6d6c47029d5aa
with:
toolchain: stable
components: rustfmt, clippy

- name: Format
run: cargo fmt --all -- --check

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

- name: Test
run: cargo test

0 comments on commit 968b06c

Please sign in to comment.