Skip to content

Commit

Permalink
Add Rust workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Rigidity committed Apr 15, 2024
1 parent b9167e6 commit e1c69f3
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Rust
on:
push:
branches:
- main
tags:
- "**"

pull_request:
branches:
- "**"

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

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

- name: Run tests
run: cargo test --all-features

- name: Clippy
run: cargo clippy

- name: Fmt
run: cargo fmt -- --files-with-diff --check

0 comments on commit e1c69f3

Please sign in to comment.