CHANGE(chore): @W-18505636@ Updates for forcedotcom/code-analyzer name change #1808
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: validate-pr | |
| on: | |
| pull_request: | |
| types: [edited, opened, reopened, synchronize] | |
| jobs: | |
| # Prevent merging to dev-4 or main-4 to preserve until we're ready to delete | |
| verify_target_branch: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - if: ${{ github.base_ref == 'dev-4' || github.base_ref == 'main-4' }} | |
| run: | | |
| echo "Forbidden to merge this branch into dev-4 or main-4" | |
| exit 1 | |
| # We need to verify that the Pull Request's title matches the desired format. | |
| verify_pr_title: | |
| runs-on: ubuntu-latest | |
| name: Verify that PR title contains well-formed GUS work item tag. | |
| steps: | |
| # Private actions must check out repo first. | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Verify PR title | |
| uses: ./github-actions/verify-pr-title | |
| id: verify_pr_title | |
| # Separately, we also need to run all of our tests. | |
| run_tests: | |
| uses: ./.github/workflows/run-tests.yml |