Skip to content

test: fix price sources test #1796

test: fix price sources test

test: fix price sources test #1796

Workflow file for this run

name: Tests
on:
push:
branches:
- main
pull_request:
jobs:
unit:
runs-on: ubuntu-latest
steps:
- name: Check out github repository
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Install node
uses: actions/setup-node@v3
with:
node-version: '18.x'
cache: yarn
cache-dependency-path: '**/yarn.lock'
- name: Install dependencies
run: yarn --frozen-lockfile
- name: Run unit tests
run: yarn test:unit
integration:
runs-on: ubuntu-latest
steps:
- name: Check out github repository
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Install node
uses: actions/setup-node@v3
with:
node-version: '18.x'
cache: yarn
cache-dependency-path: '**/yarn.lock'
- name: Install dependencies
run: yarn --frozen-lockfile
- name: Run integration tests
run: yarn test:integration
timeout-minutes: 15
env:
ALCHEMY_API_KEY: ${{secrets.ALCHEMY_API_KEY}}
BARTER_AUTH_HEADER: ${{secrets.BARTER_AUTH_HEADER}}
BARTER_CUSTOM_SUBDOMAIN: ${{secrets.BARTER_CUSTOM_SUBDOMAIN}}
CODEX_API_KEY: ${{secrets.CODEX_API_KEY}}
# integration-quotes:
# needs: ['integration']
# runs-on: ubuntu-latest
# steps:
# - name: Check out github repository
# uses: actions/checkout@v3
# with:
# fetch-depth: 1
# - name: Install node
# uses: actions/setup-node@v3
# with:
# node-version: '18.x'
# cache: yarn
# cache-dependency-path: '**/yarn.lock'
# - name: Install dependencies
# run: yarn --frozen-lockfile
# - name: Run integration tests
# run: yarn test:integration:quotes
# timeout-minutes: 15
# env:
# ALCHEMY_API_KEY: ${{secrets.ALCHEMY_API_KEY}}
# RANGO_API_KEY: ${{secrets.RANGO_API_KEY}}
# BARTER_AUTH_HEADER: ${{secrets.BARTER_AUTH_HEADER}}
# BARTER_CUSTOM_SUBDOMAIN: ${{secrets.BARTER_CUSTOM_SUBDOMAIN}}
# CI_CONTEXT: true