Skip to content

Commit

Permalink
Add test CI
Browse files Browse the repository at this point in the history
  • Loading branch information
benthecarman committed Sep 22, 2023
1 parent 966f105 commit cd04d05
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Tests

on:
pull_request:

jobs:
rust_tests:
name: Rust Checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
components: clippy, rustfmt
override: true
profile: minimal

- name: Setup trunk
uses: jetli/trunk-action@v0.1.0
with:
version: 'latest'

- uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: cargo-${{ runner.os }}-rust-tests-${{ hashFiles('**/Cargo.toml') }}
restore-keys: |
cargo-${{ runner.os }}-rust-tests-
cargo-${{ runner.os }}-
- name: Check formatting
run: cargo fmt --check

- name: Check clippy
run: cargo clippy

0 comments on commit cd04d05

Please sign in to comment.