Skip to content

feat: add migration to add index time to block, tx #777

feat: add migration to add index time to block, tx

feat: add migration to add index time to block, tx #777

Workflow file for this run

name: Test
on:
pull_request:
workflow_call:
jobs:
test:
runs-on: [ubuntu-latest]
services:
postgres:
image: postgres:13-alpine
env:
POSTGRES_PASSWORD: phamphong9981
POSTGRES_USER: phamphong
POSTGRES_DB: test
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
redis:
image: redis:6-alpine
ports:
- 6379:6379
aurad:
image: auranw/local-aurad:latest
ports:
- 1317:1317
- 26657:26657
- 9090:9090
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16.14'
registry-url: https://npm.pkg.github.com/aura-nw
- name: Install Yarn
run: npm install -g yarn
- name: Cache node modules
id: cache-npm
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- if: ${{ steps.cache-npm.outputs.cache-hit != 'true' }}
name: List the state of node modules
continue-on-error: true
run: npm list
- name: Install dependencies
run: npm install
env:
NODE_AUTH_TOKEN: ${{ secrets.KEY_NPM_RC }}
- name: Setup env
run: cp ci/.env.ci .env
- name: Setup config.json
run: cp ci/config.json.ci config.json
- name: Setup network.json
run: cp ci/network.json.ci network.json
- name: Setup code-type.json
run: cp ci/code-type.json.ci code-type.json
- name: Setup graphql-query-whitelist.json
run: cp ci/graphql-query-whitelist.json.ci graphql-query-whitelist.json
- name: Test
env:
NODE_ENV: test
POSTGRES_PASSWORD: phamphong9981
POSTGRES_USER: phamphong
POSTGRES_DB_TEST: test
run: |
npm run db:migrate:test:latest
npm run test-ci