Skip to content

update feedHash and proof conversion #1157

update feedHash and proof conversion

update feedHash and proof conversion #1157

Workflow file for this run

name: "orakl node test"
on:
push:
branches-ignore:
- "master"
paths:
- "node/**"
workflow_dispatch:
jobs:
core-build:
strategy:
fail-fast: false
runs-on: ubuntu-latest
timeout-minutes: 15
services:
postgres:
image: postgres
env:
POSTGRES_PASSWORD: postgres
POSTGRES_DB: orakl-test
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
redis:
image: redis
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 6379:6379
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "1.22.3"
check-latest: true
cache-dependency-path: |
./node/go.sum
- name: Install golang-migrate
run: |
curl -L https://github.com/golang-migrate/migrate/releases/download/v4.17.0/migrate.linux-amd64.tar.gz | tar xvz
sudo mv ./migrate /usr/bin
- name: Migrate up
run: |
cd ./node
migrate -database "postgresql://postgres:postgres@localhost:5432/orakl-test?search_path=public&sslmode=disable" -verbose -path ./migrations/node up
- name: Install dependencies
run: |
cd ./node
go mod tidy
- name: Install Task
uses: arduino/setup-task@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Run test
run: |
cd ./node
task local:test
env:
DATABASE_URL: "postgresql://postgres:postgres@localhost:5432/orakl-test?search_path=public"
REDIS_HOST: "localhost"
REDIS_PORT: "6379"
ENCRYPT_PASSWORD: "anything"
KAIA_WEBSOCKET_URL: "wss://public-en-cypress.klaytn.net/ws"
ETH_WEBSOCKET_URL: "wss://ethereum-rpc.publicnode.com"
KAIA_PROVIDER_URL: "https://public-en-kairos.node.kaia.io"
KAIA_REPORTER_PK: ${{ secrets.TEST_DELEGATOR_REPORTER_PK}}
ETH_PROVIDER_URL: "https://rpc.sepolia.org"
ETH_REPORTER_PK: ${{ secrets.TEST_DELEGATOR_REPORTER_PK}}
TEST_FEE_PAYER_PK: ${{ secrets.DELEGATOR_FEEPAYER_PK}}
SUBMISSION_PROXY_CONTRACT: "0xE2bA32d006e6FEd86AeA2502C561540c28CF65e9"
CHAIN: "test"
SIGNER_PK: ${{ secrets.TEST_DELEGATOR_REPORTER_PK}}