Skip to content

chore: add required labels check for backporting (#543) (#544) #1580

chore: add required labels check for backporting (#543) (#544)

chore: add required labels check for backporting (#543) (#544) #1580

Workflow file for this run

# This workflow runs Go tests from mainnet state to determine
# which tokens are missing prices and which routes against USDC do not exist.
# It runs this against all tokens in the asset list.
#
# We use this test in CI for detecting tokens with unsupported pricing.
# The config used is the `config.json` in root which is expected to be as close
# to mainnet as possible.
#
# The mainnet state must be manually updated when needed with 'make sqs-update-mainnet-state' against a local node.
name: Mainnet Tests
on:
pull_request:
branches:
- "**"
push:
branches:
- "main"
- "v[0-9]**"
jobs:
test_coingecko_prices:
runs-on: ubuntu-latest # This specifies the runner environment.
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: 🐿 Setup Golang
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Run Coingecko Pricing Test
env:
CI_SQS_PRICING_COINGECKO_TEST: true
run: |
go test \
-timeout 300s \
-run TestCoingeckoPricingTestSuite/TestGetPrices_Coingecko_FindUnsupportedTokens \
github.com/osmosis-labs/sqs/tokens/usecase/pricing/coingecko -v -count=1
test_prices:
runs-on: ubuntu-latest # This specifies the runner environment.
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: 🐿 Setup Golang
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Run Pricing Test
env:
CI_SQS_PRICING_WORKER_TEST: true
run: |
go test \
-timeout 300s \
-run TestPricingWorkerTestSuite/TestGetPrices_Chain_FindUnsupportedTokens \
github.com/osmosis-labs/sqs/tokens/usecase/pricing/worker -v -count=1
test_routes:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: 🐿 Setup Golang
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Run Routes Test
env:
CI_SQS_ROUTE_TEST: true
run: |
go test \
-timeout 30s \
-run TestRouterTestSuite/TestGetCandidateRoutes_Chain_FindUnsupportedRoutes \
github.com/osmosis-labs/sqs/router/usecase -v -count=1