Skip to content

Commit

Permalink
ci config for github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelkirk committed Jan 10, 2024
1 parent cfe91b0 commit 571cfbc
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: test suite
on: [push, pull_request]

jobs:
test:
name: build check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Cache rust build artifacts
uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.toml') }}
restore-keys: |
${{ runner.os }}-cargo-
- name: cargo test
run: cargo test --all-features
- name: Clippy check
run: cargo clippy --all-targets
- name: Format check
run: cargo fmt --check

0 comments on commit 571cfbc

Please sign in to comment.