Add Nethermind, Erigon and Besu support #1
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: (all packages) Docker Test Env tests | |
on: | |
pull_request_review: | |
types: [submitted] | |
pull_request: | |
types: [labeled] | |
jobs: | |
docker: | |
if: ${{ github.event.label.name == 'docker_tests' }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the Repo | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
- name: Install Go | |
uses: smartcontractkit/chainlink-github-actions/chainlink-testing-framework/setup-go@00c6214deb10a3f374c6d3430c32c5202015d463 # v2.2.12 | |
with: | |
test_download_vendor_packages_command: go mod download | |
go_mod_path: ./go.mod | |
cache_key_id: ctf-go | |
cache_restore_only: 'false' | |
# gotestfmt gives us pretty test output | |
- name: Set Up gotestfmt | |
uses: GoTestTools/gotestfmt-action@v2 | |
with: | |
token: ${{ github.token }} # Avoids rate-limiting | |
- name: Run Tests | |
run: | | |
PATH=$PATH:$(go env GOPATH)/bin | |
export PATH | |
set -euo pipefail | |
# disabled, because we want to use a multiline output of go list command | |
# shellcheck disable=SC2046 | |
go test -timeout 20m -json -cover -covermode=atomic -coverprofile=unit-test-coverage.out $(go list ./... | grep /docker/test_env) 2>&1 | tee /tmp/gotest.log | gotestfmt | |
- name: Code Coverage | |
uses: codecov/codecov-action@v3 | |
with: | |
files: ./unit-test-coverage.out | |
name: codecov-umbrella | |
- name: Publish Artifacts | |
if: failure() | |
uses: actions/upload-artifact@v3 | |
with: | |
name: test-logs | |
path: ./logs |