feat(graph): also generate the transitive reduction #6820
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test project mutual dependency versions | |
# run CI on pushes to master, and on all PRs (even the ones that target other | |
# branches) | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: 'true' | |
# without this, setup-node errors on mismatched yarn versions | |
- run: corepack enable | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
- name: Install graphviz | |
run: sudo apt install -y graphviz | |
- name: Check for cycles | |
run: scripts/check-dependency-cycles.sh 0 | |
# Under Yarn "classic" this job also checked for mismatchedWorkspaceDependencies | |
# (https://github.com/yarnpkg/yarn/blob/158d96dce95313d9a00218302631cd263877d164/src/cli/commands/workspaces.js#L49) | |
# but it's not supported in Berry and it's better solved by the "workspace:*" protocol. | |
# If we do want more workspace constraint enforcement, we can define arbitrarily with: | |
# https://yarnpkg.com/features/constraints |