-
Notifications
You must be signed in to change notification settings - Fork 262
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
### Description <!-- Is this a user-visible change? Remember to update RELEASE_NOTES.md --> <!-- Is this a bug fix for an issue visible in the latest release? Mention this in the PR details and ensure a patch release is considered --> ### How has this been tested? <!-- Tests can be added to `Source/IntegrationTests/TestFiles/LitTests/LitTest/` or to `Source/*.Test/…` and run with `dotnet test` --> <small>By submitting this pull request, I confirm that my contribution is made under the terms of the [MIT license](https://github.com/dafny-lang/dafny/blob/master/LICENSE.txt).</small> Co-authored-by: Robin Salkeld <[email protected]>
- Loading branch information
1 parent
d38be44
commit 644a7d8
Showing
1 changed file
with
90 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
name: CompFuzzCI | ||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
types: [opened, closed, synchronize, reopened] | ||
issues: | ||
branches: | ||
- master | ||
types: [opened, closed, reopened] | ||
|
||
jobs: | ||
FuzzOnPR: | ||
if: github.event_name == 'pull_request' && (github.event.action == 'opened' || github.event.action == 'reopened' || github.event.action == 'synchronize') && github.event.pull_request.base.ref == 'master' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Trigger CompFuzzCI | ||
uses: actions/github-script@v7 | ||
with: | ||
github-token: ${{ secrets.COMPFUZZCI_PAT }} | ||
script: | | ||
await github.rest.actions.createWorkflowDispatch({ | ||
owner: 'CompFuzzCI', | ||
repo: 'DafnyCompilerFuzzer', | ||
workflow_id: 'fuzz.yaml', | ||
ref: 'main', | ||
inputs: { | ||
commit: '${{ github.event.pull_request.head.sha }}', | ||
main_commit: '${{github.event.pull_request.base.sha}}', | ||
branch: '${{github.event.pull_request.head.ref}}', | ||
duration: '3600', | ||
instance: '5' | ||
} | ||
}) | ||
UpdatePRClosed: | ||
if: github.event_name == 'pull_request' && github.event.action == 'closed' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Trigger CompFuzzCI | ||
uses: actions/github-script@v7 | ||
with: | ||
github-token: ${{ secrets.COMPFUZZCI_PAT }} | ||
script: | | ||
await github.rest.actions.createWorkflowDispatch({ | ||
owner: 'CompFuzzCI', | ||
repo: 'DafnyCompilerFuzzer', | ||
workflow_id: 'update_pr_close.yaml', | ||
ref: 'main', | ||
inputs: { | ||
pr_number: '${{github.event.number}}' | ||
} | ||
}) | ||
UpdateIssueOpened: | ||
if: github.event_name == 'issues' && (github.event.action == 'opened' || github.event.action == 'reopened') && github.event.pull_request.base.ref == 'master' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Trigger CompFuzzCI | ||
uses: actions/github-script@v7 | ||
with: | ||
github-token: ${{ secrets.COMPFUZZCI_PAT }} | ||
script: | | ||
await github.rest.actions.createWorkflowDispatch({ | ||
owner: 'CompFuzzCI', | ||
repo: 'DafnyCompilerFuzzer', | ||
workflow_id: 'update_issue_open.yaml', | ||
ref: 'main', | ||
inputs: { | ||
issue_number: '${{github.event.issue.number}}', | ||
issuer: '${{github.event.issue.user.login}}', | ||
commit: ${{ github.sha }} | ||
} | ||
}) | ||
UpdateIssueClosed: | ||
if: github.event_name == 'issues' && github.event.action == 'closed' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Trigger CompFuzzCI | ||
uses: actions/github-script@v7 | ||
with: | ||
github-token: ${{ secrets.COMPFUZZCI_PAT }} | ||
script: | | ||
await github.rest.actions.createWorkflowDispatch({ | ||
owner: 'CompFuzzCI', | ||
repo: 'DafnyCompilerFuzzer', | ||
workflow_id: 'update_issue_close.yaml', | ||
ref: 'main', | ||
inputs: { | ||
issue_number: '${{github.event.issue.number}}' | ||
} | ||
}) |