Skip to content

Commit

Permalink
chore(ci): add ci file
Browse files Browse the repository at this point in the history
  • Loading branch information
0xLucqs committed Sep 21, 2023
1 parent 6054f08 commit 417fce2
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
on: [push, pull_request]

name: Sn os
jobs:
rustfmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Rust Toolchain Setup
run: rustup show
- uses: Swatinem/rust-cache@v2
- name: Check format
run: cargo fmt --all -- --check
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Rust Toolchain Setup
run: rustup show
- uses: Swatinem/rust-cache@v2
- name: Check lint
run: cargo clippy
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Rust Toolchain Setup
run: rustup show
- uses: Swatinem/rust-cache@v2
- name: Run tests
run: cargo test
4 changes: 4 additions & 0 deletions rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[toolchain]
channel = "stable-2023-08-03"
components = ["rustfmt", "clippy"]
profile = "minimal"

0 comments on commit 417fce2

Please sign in to comment.