From bfe2f07cc16c21e9806623f81f06acf418929f42 Mon Sep 17 00:00:00 2001 From: John Didion Date: Thu, 5 Oct 2023 11:42:36 -0700 Subject: [PATCH] Debug test failure that only happens in GHA (#9) * Set `CLICOLOR_FORCE` env var * Fix workflow triggers * Update `colored` version --- .github/workflows/test.yml | 8 ++++++-- Cargo.toml | 6 ++---- pest-test/Cargo.toml | 2 +- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index bd93cdc..3949ff9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,8 +1,12 @@ name: build and test -on: [push, pull_request] +on: + push: + pull_request: + types: [opened, reopened] -env: +env: + CLICOLOR_FORCE: true CARGO_TERM_COLOR: always jobs: diff --git a/Cargo.toml b/Cargo.toml index 07d19a1..6d4ac31 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,5 +1,3 @@ [workspace] -members = [ - "pest-test", - "pest-test-gen" -] \ No newline at end of file +resolver = "2" +members = ["pest-test", "pest-test-gen"] diff --git a/pest-test/Cargo.toml b/pest-test/Cargo.toml index 91f3839..770137f 100644 --- a/pest-test/Cargo.toml +++ b/pest-test/Cargo.toml @@ -11,7 +11,7 @@ license = "MIT" readme = "../README.md" [dependencies] -colored = "2.0.0" +colored = "2.0.4" pest = "2.5.2" pest_derive = "2.5.2" snailquote = "0.3.1"