feat(git): add commit amend and reword #3285
This file contains hidden or 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: | |
| permissions: | |
| contents: read | |
| # Defense in depth against npm lifecycle scripts. This workflow does not run | |
| # a package install, but this block documents the posture and future-proofs | |
| # against additions. See designs/ci-no-npm-lifecycle.md. | |
| env: | |
| YARN_ENABLE_SCRIPTS: 'false' | |
| npm_config_ignore_scripts: 'true' | |
| # Cancel in-progress runs for the same branch when a new run is started | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| submodules: 'true' | |
| persist-credentials: false | |
| # without this, setup-node errors on mismatched yarn versions | |
| - run: corepack enable | |
| - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6 | |
| with: | |
| node-version: 22.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 |