Skip to content

Commit

Permalink
Add standard ci workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
robertwayne committed Jan 16, 2025
1 parent 22914ff commit 0f86f7a
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: ci

env:
CARGO_TERM_COLOR: always

on:
push:
branches:
- main
pull_request: {}

jobs:
check:
runs-on: ubuntu-latest
strategy:
matrix:
toolchain:
- nightly
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
components: clippy, rustfmt
- uses: Swatinem/rust-cache@v2
- name: run clippy
run: cargo clippy --all-features -- -D warnings
- name: run formatter checks
run: cargo fmt --all --check

test:
needs: check
runs-on: ubuntu-latest
strategy:
matrix:
toolchain:
- nightly
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
- uses: Swatinem/rust-cache@v2
- name: run tests
run: cargo test --all-features

0 comments on commit 0f86f7a

Please sign in to comment.