Skip to content

Commit

Permalink
Add github action CI
Browse files Browse the repository at this point in the history
  • Loading branch information
fdiakh committed Sep 16, 2024
1 parent e4f6b95 commit e630cf1
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: "Test Suite"
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
test:
name: cargo test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
- run: cargo test --all-features

# Check formatting with rustfmt
formatting:
name: cargo fmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: rustfmt
- name: Rustfmt Check
uses: actions-rust-lang/rustfmt@v1

0 comments on commit e630cf1

Please sign in to comment.