Skip to content

Commit

Permalink
Add code formatting and linting to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
maneatingape committed Aug 7, 2023
1 parent 79b64c8 commit 8ee131f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,18 @@ name: Tests
on:
push:
branches: main
pull_request:
branches: main

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Check code formatting is consistent
run: cargo fmt --check
- name: Lint code
run: cargo clippy
- name: Run all tests
run: cargo test

0 comments on commit 8ee131f

Please sign in to comment.