Skip to content

Commit

Permalink
add ci test in github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
shouya committed Feb 4, 2024
1 parent 77f453d commit 8d88c14
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: CI

on: [push, pull_request]

jobs:
ci:
name: CI
runs-on: ubuntu-latest

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

- name: Setup Rust toolchain
uses: dtolnay/rust-toolchain@stable

- name: cargo build
run: cargo build

- name: cargo test
run: cargo test

- name: cargo fmt
run: cargo fmt --all -- --check

- name: cargo clippy
run: cargo clippy -- -D warnings

0 comments on commit 8d88c14

Please sign in to comment.