mirror of
https://github.com/herdrdev/herdr.git
synced 2026-09-21 16:01:04 +00:00
ci: add just ci for pull request checks
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
name: CI
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types: [opened, synchronize, reopened]
|
||||
|
||||
jobs:
|
||||
check:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install just
|
||||
uses: extractions/setup-just@v3
|
||||
|
||||
- name: Install Rust
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
|
||||
- name: Restore cargo cache
|
||||
uses: Swatinem/rust-cache@v2
|
||||
|
||||
- name: Run checks
|
||||
run: just ci
|
||||
+2
-2
@@ -48,10 +48,10 @@ If you plan to implement the change yourself, say that directly in the issue and
|
||||
|
||||
## Before submitting a PR
|
||||
|
||||
Run the project checks and make sure they pass.
|
||||
Run the PR checks and make sure they pass.
|
||||
|
||||
```bash
|
||||
just check
|
||||
just ci
|
||||
```
|
||||
|
||||
Do not open a PR that bypasses failing tests, formatting, or build errors.
|
||||
|
||||
@@ -5,10 +5,13 @@ test:
|
||||
cargo test
|
||||
python3 -m unittest scripts.test_changelog scripts.test_vendor_libghostty_vt
|
||||
|
||||
# Check formatting + run unit tests
|
||||
check:
|
||||
# Run PR CI checks
|
||||
ci:
|
||||
cargo fmt --check
|
||||
cargo test
|
||||
|
||||
# Check formatting + run unit tests + maintenance script tests
|
||||
check: ci
|
||||
python3 -m unittest scripts.test_changelog scripts.test_vendor_libghostty_vt
|
||||
|
||||
# Run the full local test suite
|
||||
|
||||
Reference in New Issue
Block a user