Skip to content
Open
Show file tree
Hide file tree
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
97 changes: 35 additions & 62 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,62 +1,35 @@
# Auto-label PRs by changed files
'feat':
- src/**/*.rs
- Cargo.toml

'fix':
- src/**/*.rs

'docs':
- '**/*.md'
- '**/docs/**'

'ci':
- .github/workflows/**/*
- .github/**/*

'config':
- 'opencode.json'
- 'opencode.jsonc'
- '**/opencode*'

'test':
- tests/**/*

size/XS:
- all:
- '**/*'
any:
- count: '**/*.rs'
min: 1
max: 3

size/S:
- all:
- '**/*'
any:
- count: '**/*.rs'
min: 4
max: 10

size/M:
- all:
- '**/*'
any:
- count: '**/*.rs'
min: 11
max: 30

size/L:
- all:
- '**/*'
any:
- count: '**/*.rs'
min: 31
max: 100

size/XL:
- all:
- '**/*'
any:
- count: '**/*.rs'
min: 101
# Auto-label PRs by changed files (actions/labeler v5 syntax)
feat:
- changed-files:
- any-glob-to-any-file:
- src/**/*.rs
- Cargo.toml

fix:
- changed-files:
- any-glob-to-any-file:
- src/**/*.rs

docs:
- changed-files:
- any-glob-to-any-file:
- '**/*.md'
- '**/docs/**'

ci:
- changed-files:
- any-glob-to-any-file:
- .github/workflows/**/*
- .github/**/*

config:
- changed-files:
- any-glob-to-any-file:
- 'opencode.json'
- 'opencode.jsonc'
- '**/opencode*'

test:
- changed-files:
- any-glob-to-any-file:
- tests/**/*
18 changes: 15 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:

env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: full

jobs:
test:
Expand All @@ -20,7 +21,19 @@ jobs:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- run: cargo test

- name: Compile check
run: cargo check 2>&1

- name: Run tests (verbose)
run: cargo test -- --nocapture --test-threads=1 2>&1

- name: Test summary
if: always()
run: |
echo "### Test Results (${{ matrix.os }})" >> $GITHUB_STEP_SUMMARY
echo "- OS: ${{ matrix.os }}" >> $GITHUB_STEP_SUMMARY
echo "- Status: ${{ job.status }}" >> $GITHUB_STEP_SUMMARY

fmt:
name: Format
Expand All @@ -41,8 +54,7 @@ jobs:
with:
components: clippy
- uses: Swatinem/rust-cache@v2
- run: cargo clippy --all-targets
continue-on-error: true
- run: cargo clippy --all-targets -- -D warnings

msrv:
name: MSRV (1.86.0)
Expand Down
Loading
Loading