Skip to content

Commit

Permalink
Add CI
Browse files Browse the repository at this point in the history
  • Loading branch information
friendlymatthew committed Jan 3, 2025
1 parent eb539be commit abac45a
Show file tree
Hide file tree
Showing 3 changed files with 1,813 additions and 73 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: CI
on:
push:
branches:
- main
pull_request:

jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master

- uses: dtolnay/rust-toolchain@master
with:
toolchain: "1.70.0"

- name: version info
run: rustc --version; cargo --version;

- name: Run all tests
run: cargo test --features=macro

fmt:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master

- uses: dtolnay/rust-toolchain@master
with:
toolchain: "1.70.0"

- run: |
rustup component add rustfmt
cargo fmt --all -- --check
clippy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master

- uses: dtolnay/rust-toolchain@master
with:
toolchain: "1.70.0"

- run: |
rustup component add clippy
cargo clippy --features=macro -- -D warnings
Loading

0 comments on commit abac45a

Please sign in to comment.