Skip to content

Commit 4ebb0a7

Browse files
committed
Reimport LayrLabs conditions for running CI
1 parent fdf358c commit 4ebb0a7

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

.github/workflows/certora-prover.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,22 @@ on:
2020
workflow_dispatch:
2121

2222
jobs:
23-
certora_run_submission:
23+
# Compile the contracts and run verification
24+
compile_and_verify:
25+
name: Compile and verify
26+
# Run if it meets one of these conditions:
27+
# 1. It's a merged PR from a feat/* branch to dev
28+
# 2. It's a push to a certora/* branch
29+
# 3. It's a scheduled run
30+
# 4. It's a manually triggered run
31+
if: >
32+
(github.event_name == 'pull_request' &&
33+
github.event.pull_request.merged == true &&
34+
startsWith(github.head_ref, 'feat/')) ||
35+
(github.event_name == 'push' &&
36+
startsWith(github.ref, 'refs/heads/certora/')) ||
37+
github.event_name == 'schedule' ||
38+
github.event_name == 'workflow_dispatch'
2439
runs-on: ubuntu-latest
2540
permissions:
2641
contents: read

0 commit comments

Comments
 (0)