Skip to content

Commit

Permalink
create github workflow (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
liyang8246 authored Oct 6, 2024
1 parent a25cc70 commit f53d515
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/fmt-and-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: fmt-and-test

on: [push,pull_request]

jobs:
fmt-and-test:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

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

- name: Run test
if: ${{ success() }}
run: cargo test

0 comments on commit f53d515

Please sign in to comment.