Skip to content

Commit

Permalink
Scrape warning messages in CI
Browse files Browse the repository at this point in the history
There's a downstream workflow that runs the `print-warnings` command. We
can make it faster by scraping the warnings in CI and storing the
result as a build artifact.
  • Loading branch information
acdlite committed Sep 22, 2021
1 parent cf07c3d commit d7273e7
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,19 @@ jobs:
- *restore_node_modules
- run: node ./scripts/tasks/flow-ci

scrape_warning_messages:
docker: *docker
environment: *environment

steps:
- checkout
- run: yarn workspaces info | head -n -1 > workspace_info.txt
- *restore_node_modules
- run: node ./scripts/print-warnings/print-warnings.js > build/WARNINGS
- persist_to_workspace:
root: .
paths:
- build

yarn_build_combined:
docker: *docker
Expand Down Expand Up @@ -339,6 +352,7 @@ workflows:
- setup
- process_artifacts_combined:
requires:
- scrape_warning_messages
- yarn_build_combined
- yarn_test_build:
requires:
Expand Down

0 comments on commit d7273e7

Please sign in to comment.