Skip to content

Commit

Permalink
force color
Browse files Browse the repository at this point in the history
  • Loading branch information
tomtau committed Sep 17, 2024
1 parent ab44154 commit ef8da32
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
- name: cargo clippy
run: cargo clippy --all --features pretty-print,const_prec_climber,memchr,grammar-extras,miette-error --all-targets -- -Dwarnings
- name: cargo test
run: NO_COLOR=0 cargo test --all --features pretty-print,const_prec_climber,memchr,grammar-extras,miette-error --release
run: FORCE_COLOR=1 cargo test --all --features pretty-print,const_prec_climber,memchr,grammar-extras,miette-error --release
- name: cargo test (ignored)
run: cargo test -p pest_grammars --lib --verbose --release -- --ignored tests::toml_handles_deep_nesting_unstable

Expand Down Expand Up @@ -101,7 +101,7 @@ jobs:
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- name: Generate code coverage
run: NO_COLOR=0 cargo llvm-cov --features pretty-print,const_prec_climber,memchr,grammar-extras,miette-error --workspace --lcov --output-path lcov.info
run: FORCE_COLOR=1 cargo llvm-cov --features pretty-print,const_prec_climber,memchr,grammar-extras,miette-error --workspace --lcov --output-path lcov.info
- name: Upload Results to Codecov
uses: codecov/codecov-action@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion pest/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1170,7 +1170,7 @@ mod tests {
assert_eq!(
format!("{:?}", miette_error),
[
" \u{1b}[31m×\u{1b}[0m Failure to parse at (2, 1)",
" \u{1b}[31m×\u{1b}[0m Failure to parse at Pos((2, 1))",
" ╭────",
" \u{1b}[2m1\u{1b}[0m │ def",
" · \u{1b}[35;1m┬\u{1b}[0m",
Expand Down

0 comments on commit ef8da32

Please sign in to comment.