Create tooling around merge-mode usage
#9943
Workflow file for this run
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: Pull Request | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: {} | |
| defaults: | |
| run: | |
| shell: bash | |
| jobs: | |
| lint: | |
| timeout-minutes: 10 | |
| runs-on: ubuntu-latest | |
| steps: | |
| # Because the checkout and setup node action is contained in the dev-infra repo, we must | |
| # checkout the repo to be able to run the action we have created. Other repos will skip | |
| # this step. | |
| - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1 | |
| - uses: ./github-actions/npm/checkout-and-setup-node | |
| - uses: ./github-actions/bazel/setup | |
| - uses: ./github-actions/bazel/configure-remote | |
| - run: pnpm install --frozen-lockfile | |
| - name: Check code format | |
| run: pnpm ng-dev format changed --check ${{ github.event.pull_request.base.sha }} | |
| - name: Check commit message | |
| run: pnpm ng-dev commit-message validate-range ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }} | |
| - name: Check code lint | |
| run: pnpm lint | |
| # TODO: Enable again after the tsconfigs are reworked as part of migration | |
| # - name: Confirm code builds with typescript as expected | |
| # run: pnpm tsc -p tsconfig.json | |
| - name: Check Package Licenses | |
| uses: ./github-actions/linting/licenses | |
| with: | |
| allow-dependencies-licenses: 'pkg:npm/renovate, pkg:npm/@renovatebot/detect-tools' | |
| test: | |
| timeout-minutes: 15 | |
| runs-on: ubuntu-latest | |
| steps: | |
| # Because the checkout and setup node action is contained in the dev-infra repo, we must | |
| # checkout the repo to be able to run the action we have created. Other repos will skip | |
| # this step. | |
| - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1 | |
| - uses: ./github-actions/npm/checkout-and-setup-node | |
| - uses: ./github-actions/bazel/setup | |
| - uses: ./github-actions/bazel/configure-remote | |
| - run: pnpm install --frozen-lockfile | |
| - run: pnpm bazel test -- //... | |
| # macos testing is disabled as we do not have any targets we currently test. | |
| #test-macos: | |
| # timeout-minutes: 30 | |
| # runs-on: macos-latest | |
| # steps: | |
| # # Because the checkout and setup node action is contained in the dev-infra repo, we must | |
| # # checkout the repo to be able to run the action we have created. Other repos will skip | |
| # # this step. | |
| # - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| # - uses: ./github-actions/npm/checkout-and-setup-node | |
| # - uses: ./github-actions/bazel/setup | |
| # - run: pnpm install --frozen-lockfile | |
| # - run: pnpm bazel test --sandbox_writable_path="$HOME/Library/Application Support" --test_tag_filters=macos --build_tests_only -- //... |