Skip to content

Commit

Permalink
chore: add github action for testing and linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Huy-DNA committed Feb 28, 2024
1 parent de88379 commit 22058f1
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/test_and_lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: test and lint

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Build
run: cargo build --verbose
- name: Run checks
run: cargo check
- name: Run tests
run: cargo test --verbose
- name: Run lint
run: cargo clippy

0 comments on commit 22058f1

Please sign in to comment.