Skip to content

Add WT and DeriveRemaining capability #7076

Add WT and DeriveRemaining capability

Add WT and DeriveRemaining capability #7076

Workflow file for this run

name: relay
on:
pull_request:
push:
branches:
- develop
jobs:
relay_run_unit_tests:
name: Relay Run Unit Tests
permissions:
contents: read
actions: read
env:
DB_URL: postgresql://postgres:postgres@localhost:5432/chainlink_test?sslmode=disable
runs-on: ubuntu-latest-8cores-32GB
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Setup go
uses: actions/setup-go@v5
with:
go-version-file: "go.mod"
check-latest: true
- name: Install gotestloghelper
run: go install github.com/smartcontractkit/chainlink-testing-framework/tools/gotestloghelper@latest
- name: Check go mod tidy
run: |
make gomodtidy
echo "if this fails run 'make gomodtidy' to fix"
git diff --minimal --exit-code
- name: Check go generate
run: |
make rm-mocked
make generate
echo "if this fails run 'make generate' to fix"
git diff --stat --exit-code
- name: Install Solana CLI
run: ./scripts/install-solana-ci.sh
- name: Compilation check
run: go test -run=xxx ./... # check compilation across tests + relayer / monitoring go code without running
- name: Build
run: go build -v ./pkg/...
- name: Get core ref
id: get-ref
uses: ./.github/actions/get-core-ref
- name: Setup Test DB
id: setup-testdb
uses: ./.github/actions/setup-testdb
with:
core-ref: ${{ steps.get-ref.outputs.core-ref }}
- name: Test
env:
CL_DATABASE_URL: ${{ steps.setup-testdb.outputs.cl-db-url }}
run: |
set -o pipefail
go test ./pkg/... -json -tags integration -covermode=atomic -coverpkg=./... -coverprofile=integration_coverage.txt 2>&1 | tee /tmp/gotest.log | gotestloghelper -ci
- name: Test with the race detector enabled
env:
CL_DATABASE_URL: ${{ steps.setup-testdb.outputs.cl-db-url }}
run: go test ./pkg/... -v -race -count=10 -timeout=15m -covermode=atomic -coverpkg=./... -coverprofile=race_coverage.txt
- name: Upload Go test results
if: always()
uses: actions/upload-artifact@v4
with:
name: go-relay-test-results
path: |
/tmp/gotest.log
./race_coverage.txt
./integration_coverage.txt