Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 4 additions & 34 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,42 +1,12 @@
name: CI

on:
push:
branches: ["main", "feat/**", "fix/**", "chore/**"]
pull_request:
branches: ["main"]

env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: 1

workflow_dispatch:
jobs:
test:
name: Build & Test
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install Rust stable
uses: dtolnay/rust-toolchain@stable
with:
components: clippy

- name: Cache cargo registry & build
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-

- name: cargo check
run: cargo check --workspace --all-targets

- name: cargo test
run: cargo test --workspace

- name: cargo clippy
run: cargo clippy --workspace --all-targets -- -D warnings
- name: CI passing
run: echo "CI passing"
Loading