Skip to content

Commit

Permalink
chore: fix GHA for merge-queue (#4973)
Browse files Browse the repository at this point in the history
  • Loading branch information
dougch authored Dec 11, 2024
1 parent 76cba02 commit 27548e9
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 6 deletions.
29 changes: 23 additions & 6 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,9 @@ name: "CodeQL - Python"

on:
push:
branches: [ "main" ]
paths-ignore:
- '**/tests/integration/*'
branches: [main]
pull_request:
branches: [ "main" ]
paths-ignore:
- '**/tests/integration/*'
branches: [main]
schedule:
- cron: "1 18 * * 0"
merge_group:
Expand Down Expand Up @@ -49,3 +45,24 @@ jobs:
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{ matrix.language }}"

# This is a very simple Action that will act as a substitute required status
# check for Code Scanning once you have merge-queue enabled. It will force
# Code Scanning to pass at the Pull Request and allow you to skip it in your
# repo's merge group. https://github.com/Eldrick19/code-scanning-status-checker
check_codeql_status:
name: Check CodeQL Status
needs: analyze
permissions:
contents: read
checks: read
pull-requests: read
runs-on: ubuntu-latest
if: ${{ github.event_name == 'pull_request' }}
steps:
- name: Check CodeQL Status
uses: eldrick19/code-scanning-status-checker@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
pr_number: ${{ github.event.pull_request.number }}
repo: ${{ github.repository }}
5 changes: 5 additions & 0 deletions .github/workflows/regression_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,16 @@
name: Performance Regression Test

on:
push:
branches: [main]
pull_request:
branches:
- main
paths-ignore:
- tests/regression/**
merge_group:
types: [checks_requested]
branches: [main]

jobs:
regression-test:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/usage_guide.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
pull_request:
branches:
- main
merge_group:
types: [checks_requested]
branches: [main]

env:
CDN: https://d3fqnyekunr9xg.cloudfront.net
Expand Down

0 comments on commit 27548e9

Please sign in to comment.