Skip to content

Commit

Permalink
chore(ci): add ci file (#8)
Browse files Browse the repository at this point in the history
* chore(ci): add ci file

* chore(clippy): make clippy happy
  • Loading branch information
0xLucqs authored Sep 21, 2023
1 parent 6054f08 commit ad32d93
Show file tree
Hide file tree
Showing 10 changed files with 3,069 additions and 29 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
5 changes: 0 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1 @@
/target
/Cargo.lock

build/*
!build/fact.json
!build/.gitkeep
Loading

0 comments on commit ad32d93

Please sign in to comment.