Skip to content

Commit

Permalink
Rework template setup. Call run_kontrol with extra args as dispatch job
Browse files Browse the repository at this point in the history
  • Loading branch information
devops committed Mar 12, 2024
1 parent d015f70 commit c56712d
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 64 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/optimism-ci.yaml
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
52 changes: 0 additions & 52 deletions .github/workflows/test-pr.yml

This file was deleted.

11 changes: 0 additions & 11 deletions foundry.toml

This file was deleted.

1 change: 0 additions & 1 deletion lib/forge-std
Submodule forge-std deleted from f73c73

0 comments on commit c56712d

Please sign in to comment.