Workflow file for this run
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
name: RPC tests on repeat | ||
# todo remove this after testing | ||
concurrency: | ||
group: '${{ github.workflow }}-${{ github.ref }}' | ||
cancel-in-progress: '${{ github.ref != ''refs/heads/main'' }}' | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
image: | ||
description: 'Forest image to use' | ||
required: false | ||
default: 'ghcr.io/chainsafe/forest:edge-fat' | ||
type: string | ||
schedule: | ||
- cron: 0 0 * * * | ||
# TODO remove once tested | ||
pull_request: | ||
branches: | ||
- main | ||
env: | ||
FIL_PROOFS_PARAMETER_CACHE: /var/tmp/filecoin-proof-parameters | ||
SHELL_IMAGE: busybox | ||
jobs: | ||
calibnet-rpc-checks: | ||
strategy: | ||
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] | ||
x: [1, 2] | ||
y: [1, 2] | ||
name: Calibnet RPC checks | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
# Dummy Dockerfile to run the RPC tests with the latest Forest image. | ||
- run: | | ||
if [ "${{ github.event.inputs.image }}" == "'' ]; then | ||
IMAGE=ghcr.io/chainsafe/forest:edge-fat | ||
else | ||
IMAGE=${{ github.event.inputs.image }} | ||
fi | ||
echo "FROM $$IMAGE" > Dockerfile-RPC | ||
- uses: ./.github/workflows/composite/rpc_test | ||
with: | ||
FIL_PROOFS_PARAMETER_CACHE: ${{ env.FIL_PROOFS_PARAMETER_CACHE }} | ||
SHELL_IMAGE: ${{ env.SHELL_IMAGE }} | ||
FOREST_DOCKERFILE_OVERRIDE: Dockerfile-RPC |