Skip to content

Commit

Permalink
Add CI checks as github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
tpoliaw committed Nov 6, 2024
1 parent 8cc6269 commit 7503ef1
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Numtracker CI

on:
push:
pull_request:

env:
CARGO_TERM_COLOR: always

jobs:
test:
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2

- name: Check formating
run: cargo fmt -- --check

- name: Clippy
run: |
cargo --version
cargo clippy --version
cargo clippy --all-targets --all-features -- --deny warnings
- name: Check formating
run: cargo fmt -- --check

- name: Run tests
run: cargo test --verbose

0 comments on commit 7503ef1

Please sign in to comment.