forked from 0xPolygonHermez/zkevm-node
-
Notifications
You must be signed in to change notification settings - Fork 121
34 lines (28 loc) · 986 Bytes
/
regression-tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Regression Tests
on:
pull_request:
types: [opened, synchronize] # Trigger on new PR and existing with new commits
branches:
- develop
jobs:
deploy_devnet:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build image (with proposed code changes) locally
id: build
run: |
if [ "$GITHUB_EVENT_NAME" == "pull_request" ]; then
GITHUB_SHA_SHORT=$(jq -r .pull_request.head.sha "$GITHUB_EVENT_PATH" | cut -c 1-7)
echo $GITHUB_SHA_SHORT
echo "::set-output name=GITHUB_SHA_SHORT::$GITHUB_SHA_SHORT"
fi
- name: Set up Docker
uses: docker/setup-buildx-action@v1
- name: Run regression tests against JIT container image
uses: 0xPolygon/kurtosis-cdk@v0.1.9
with:
zkevm_node: ${{ steps.build.outputs.GITHUB_SHA_SHORT }}
kurtosis_cli: 0.89.3
kurtosis_cdk: v0.2.0