Skip to content

Commit

Permalink
Add simple CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
MrGVSV committed May 4, 2023
1 parent 3633b51 commit 92d4e03
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 @@
# partially adopted from https://github.com/Leafwing-Studios/Emergence/blob/main/.github/workflows/ci.yml

name: CI

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

env:
CARGO_TERM_COLOR: always
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse

jobs:
format-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- uses: Leafwing-Studios/cargo-cache@v1
- run: cargo fmt --check
clippy-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- uses: Leafwing-Studios/cargo-cache@v1
- run: cargo clippy --workspace --examples --all-targets --all-features -- -D warnings

0 comments on commit 92d4e03

Please sign in to comment.