-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3c7111d
commit d271942
Showing
1 changed file
with
46 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,46 @@ | ||
name: RPC tests on repeat | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
image: | ||
description: 'Forest image to use' | ||
required: false | ||
default: 'ghcr.io/chainsafe/forest:edge-fat' | ||
type: string | ||
|
||
schedule: | ||
# Run every day at midnight | ||
- cron: 0 0 * * * | ||
|
||
env: | ||
SHELL_IMAGE: busybox | ||
SCRIPT_TIMEOUT_MINUTES: 30 | ||
|
||
jobs: | ||
calibnet-rpc-checks: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
# GH Actions do not support running jobs in a loop. | ||
# This is a workaround to run the same job 100 times. | ||
x: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] | ||
y: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] | ||
name: Calibnet RPC checks | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Run api compare tests | ||
shell: bash | ||
run: | | ||
IMAGE=${{ github.event.inputs.image }} | ||
if [ -z "$IMAGE" ]; then | ||
IMAGE="ghcr.io/chainsafe/forest:edge-fat" | ||
fi | ||
echo "FROM $IMAGE" > Dockerfile-RPC | ||
export FOREST_DOCKERFILE_OVERRIDE=Dockerfile-RPC | ||
./scripts/tests/api_compare/setup.sh | ||
timeout-minutes: '${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }}' | ||
- name: Dump docker logs | ||
if: always() | ||
uses: jwalton/gh-docker-logs@v2 |