Skip to content

Commit

Permalink
Add CI setting
Browse files Browse the repository at this point in the history
  • Loading branch information
rantan committed Sep 26, 2024
1 parent a70fa66 commit 4fea715
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: CI

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Install Rust stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true

- name: Install rustfmt
run: rustup component add rustfmt

- name: Check code formatting
run: cargo fmt -- --check

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

0 comments on commit 4fea715

Please sign in to comment.