fix: reduce logs #1602
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: "miko node test" | |
on: | |
push: | |
branches-ignore: | |
- "master" | |
paths: | |
- "node/**" | |
- "!node/**.md" | |
- "!node/pkg/dal/**" | |
- "!node/migrations/dal/**" | |
- "!node/pkg/boot/**" | |
- "!node/migrations/boot/**" | |
- "!node/pkg/logscribe/**" | |
- "!node/migrations/logscribe/**" | |
- "!node/pkg/logscribeconsumer/**" | |
- "!node/pkg/checker/**" | |
- "!node/pkg/delegator/**" | |
- "!node/migrations/delegator/**" | |
- "!node/pkg/api/**" | |
- "!node/migrations/api/**" | |
- "!node/cmd/dal/**" | |
- "!node/cmd/boot_api/**" | |
- "!node/cmd/logscribe/**" | |
- "!node/cmd/delegator/**" | |
- "!node/cmd/api/**" | |
- "!node/cmd/sentinel/**" | |
- "!node/cmd/reporter/**" | |
- "!node/pkg/reporter/**" | |
- "!node/pkg/raft/**" | |
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: miko-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/miko-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/miko-test?search_path=public" | |
REDIS_HOST: "localhost" | |
REDIS_PORT: "6379" | |
ENCRYPT_PASSWORD: "anything" | |
KAIA_WEBSOCKET_URL: "wss://public-en.node.kaia.io/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}} | |
API_KEY: ${{ secrets.DAL_API_KEY}} | |
DAL_WS_URL: "ws://dal.baobab.orakl.network/ws" |