Skip to content

Commit 307173d

Browse files
committed
🔧 Create just recipe for check-unsupported
1 parent 5990b52 commit 307173d

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,16 @@ jobs:
3232
rust-version: ['${{needs.pre-build.outputs.rust-version}}', stable, nightly]
3333
steps:
3434
- uses: actions/checkout@v4
35+
- uses: taiki-e/install-action@v2
36+
with:
37+
tool: just
3538
- name: Use Rust ${{matrix.rust-version}}
3639
if: matrix.rust-version != 'stable'
3740
run: rustup override set '${{matrix.rust-version}}'
3841
- name: Build
3942
run: cargo build --workspace --all-features
4043
- name: Check fallback implementation
41-
run: cargo check --workspace
42-
env:
43-
RUSTFLAGS: --cfg terminal_colorsaurus_test_unsupported -Dwarnings
44+
run: just check-unsupported
4445
docs:
4546
name: Docs
4647
runs-on: ubuntu-latest

Justfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,8 @@ test-package name *args:
99
cargo package -p "{{name}}" {{args}}
1010
(cd $CARGO_TARGET_DIR/package/{{name}}-*/ && cargo test)
1111

12+
check-unsupported:
13+
RUSTFLAGS='--cfg terminal_colorsaurus_test_unsupported -Dwarnings' cargo check --workspace
14+
1215
doc:
1316
cargo +nightly docs-rs -p terminal-colorsaurus

0 commit comments

Comments
 (0)