-
Notifications
You must be signed in to change notification settings - Fork 160
51 lines (49 loc) · 1.51 KB
/
rpc_test_repeat.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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