-
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
c02a97d
commit 03bd5d5
Showing
2 changed files
with
53 additions
and
34 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,50 @@ | ||
name: RPC tests composite action | ||
|
||
description: | | ||
This action runs the RPC conformance tests | ||
inputs: | ||
FIL_PROOFS_PARAMETER_CACHE: | ||
required: true | ||
SHELL_IMAGE: | ||
required: true | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- uses: actions/cache@v4 | ||
id: cache | ||
with: | ||
path: '${{ inputs.FIL_PROOFS_PARAMETER_CACHE }}' | ||
key: proof-params-keys | ||
- name: Load cache into volume | ||
if: steps.cache.outputs.cache-hit == 'true' | ||
run: | | ||
docker volume create api_compare_filecoin-proofs | ||
docker run --rm \ | ||
-v api_compare_filecoin-proofs:/proofs \ | ||
-v ${{ inputs.FIL_PROOFS_PARAMETER_CACHE }}:/cache \ | ||
${{ inputs.SHELL_IMAGE }} \ | ||
sh -c "cp /cache/* /proofs" | ||
- uses: actions/checkout@v4 | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: 'forest-${{ runner.os }}' | ||
- name: Run api compare tests | ||
run: ./scripts/tests/api_compare/setup.sh | ||
timeout-minutes: 30 | ||
env: | ||
# We use a custom Dockerfile for CI to speed up the build process. | ||
FOREST_DOCKERFILE_OVERRIDE: scripts/devnet/forest_ci.dockerfile | ||
- name: Dump docker logs | ||
if: always() | ||
uses: jwalton/gh-docker-logs@v2 | ||
- name: Prepare cache folder for uploading | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
run: | | ||
docker run --rm \ | ||
-v api_compare_filecoin-proofs:/proofs \ | ||
-v ${{ inputs.FIL_PROOFS_PARAMETER_CACHE }}:/cache \ | ||
${{ inputs.SHELL_IMAGE }} \ | ||
sh -c "cp /proofs/* /cache" | ||
sudo chmod -R 755 ${{ inputs.FIL_PROOFS_PARAMETER_CACHE }} |
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