Skip to content

add ci

add ci #1

Workflow file for this run

name: CI
on:
workflow_dispatch:
push:
branches:
- main
- dev
paths:
- 'src/**'
- 'Cargo.toml'
- 'Cargo.lock'
pull_request:
paths:
- 'src/**'
- 'Cargo.toml'
- 'Cargo.lock'
# Common environment variables
env:
RUSTFLAGS: "-C debuginfo=1"
CARGO_TERM_COLOR: always
RUST_BACKTRACE: "1"
LOCK_FILE: Cargo.lock
jobs:
style-check:
name: style-check
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
- name: Run Style Check
run: |
make ci
- name: Run
run: |
make run
- name: Check git status
run: |
git diff --exit-code