Skip to content

Commit

Permalink
fix color output in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
tomtau committed Sep 17, 2024
1 parent bd3b495 commit ab44154
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: cargo test --all --features pretty-print,const_prec_climber,memchr,grammar-extras,miette-error --release
run: NO_COLOR=0 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: cargo llvm-cov --features pretty-print,const_prec_climber,memchr,grammar-extras,miette-error --workspace --lcov --output-path lcov.info
run: NO_COLOR=0 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 @@ -1169,7 +1169,7 @@ mod tests {

assert_eq!(
format!("{:?}", miette_error),
vec![
[
" \u{1b}[31m×\u{1b}[0m Failure to parse at (2, 1)",
" ╭────",
" \u{1b}[2m1\u{1b}[0m │ def",
Expand Down

0 comments on commit ab44154

Please sign in to comment.