-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework template setup. Call run_kontrol with extra args as dispatch job
- Loading branch information
devops
committed
Mar 12, 2024
1 parent
d015f70
commit c56712d
Showing
4 changed files
with
52 additions
and
64 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,52 @@ | ||
--- | ||
name: 'Test PR' | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
branch_name: | ||
description: 'Branch Name to Test From' | ||
required: true | ||
extra_args: | ||
description: 'Additional Arguments to for run_kontro.sh ' | ||
required: false | ||
|
||
# Stop in progress workflows on the same branch and same workflow to use latest committed code | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
sanity-check: | ||
name: 'Sanity Check' | ||
runs-on: [self-hosted, linux, flyweight] | ||
steps: | ||
- name: 'Check out code' | ||
uses: actions/checkout@v4 | ||
with: | ||
token: ${{ secrets.JENKINS_GITHUB_PAT }} | ||
fetch-depth: 0 | ||
submodules: 'recursive' | ||
|
||
- name: "Checkout Optimism" | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: 'ethereum-optimism/optimism' | ||
token: ${{ secrets.JENKINS_GITHUB_PAT }} | ||
path: 'optimism' | ||
ref: ${{ github.event.inputs.branch_name }} | ||
fetch-depth: 0 | ||
submodules: 'recursive' | ||
|
||
- name: 'Run Kontrol' | ||
run: | | ||
# Run the following in the running docker container | ||
pushd optimism > /dev/null | ||
find . -name "run-kontrol.sh" -type f -exec {} ${{ github.event.inputs.extra_args }} \; | ||
- name: 'Upload results.tar.gz' | ||
if: always() | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: Kontrol Results | ||
path: kontrol-results_latest.tar.gz | ||
retention-days: 5 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Submodule forge-std
deleted from
f73c73