Skip to content

Commit

Permalink
fmt and clippy ci
Browse files Browse the repository at this point in the history
  • Loading branch information
chaosprint committed Jun 21, 2024
1 parent 005d206 commit 150fc50
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: CI

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
fmt-and-clippy:
runs-on: ubuntu-latest

strategy:
matrix:
rust: [stable, beta, nightly]

steps:
- uses: actions/checkout@v2

- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true

- name: Run formatter check
working-directory: rs
run: cargo fmt -- --check

- name: Run clippy
working-directory: rs
run: cargo clippy -- -D warnings

0 comments on commit 150fc50

Please sign in to comment.