Skip to content

Commit

Permalink
ci: add cache & code fmt check (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jayllyz authored Jun 23, 2024
1 parent 8070779 commit f1d3c90
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,30 @@ on:

env:
CARGO_TERM_COLOR: always
RUSTFLAGS: "-Dwarnings"
RUST_LOG: info
RUST_BACKTRACE: 1
CI: true

jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Checkout code
uses: actions/checkout@v4

- name: Install toolchain
uses: moonrepo/setup-rust@v1
with:
components: clippy,rustfmt
cache-base: main

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

- name: Run Clippy
run: cargo clippy --all-targets --all-features
run: cargo clippy

- name: Build
- name: Run Build
run: cargo build

- name: Run tests
Expand Down

0 comments on commit f1d3c90

Please sign in to comment.