Skip to content

Commit

Permalink
Add GitHub Actions CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
erikgrinaker committed Aug 13, 2023
1 parent 7c5942f commit ea8aa1d
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: CI
on: [push, pull_request, workflow_dispatch]
permissions:
contents: read

jobs:
test:
name: Test
runs-on: ubuntu-latest
timeout-minutes: 10

steps:
- uses: actions/checkout@v3
- uses: dtolnay/[email protected]
id: toolchain
with:
components: clippy, rustfmt
- uses: actions/cache@v3
with:
path: target
key: ${{runner.os}}-target-${{steps.toolchain.outputs.cachekey}}-${{hashFiles('Cargo.lock')}}
- run: cargo build --tests
- run: cargo test
- run: cargo clippy --tests -- -D warnings
- run: cargo fmt --check

0 comments on commit ea8aa1d

Please sign in to comment.