Skip to content

Commit

Permalink
ci: Automating scheduling benchmarking testing for PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekFrank committed Feb 28, 2025
1 parent a65b852 commit d0e0dee
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/scheduling-benchmarking.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: "Scheduling Benchmarking"

on:
pull_request:
paths:
- pkg/controllers/provisioning/*

jobs:
before:
permissions:
pull-requests: write
name: Before PR
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- run: |
cd pkg/controllers/provisioning/scheduling && go test -tags=test_performance -run=SchedulingProfile >> "$GITHUB_OUTPUT"
- uses: actions/github-script@v7
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: '$GITHUB_OUTPUT'
})
after:
permissions:
pull-requests: write
name: After PR
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: |
cd pkg/controllers/provisioning/scheduling && go test -tags=test_performance -run=SchedulingProfile >> "$GITHUB_OUTPUT"
- uses: actions/github-script@v7
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: '$GITHUB_OUTPUT'
})

0 comments on commit d0e0dee

Please sign in to comment.