[LUM-895] Fix draws and prizes sync #340
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: Lint, format and test the bridge on pull request events | |
on: | |
pull_request: | |
types: [opened, edited, synchronize, reopened] | |
jobs: | |
build: | |
name: Build, lint, format the code and test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- uses: actions/setup-python@v1 | |
with: | |
python-version: '3.x' | |
architecture: 'x64' | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: '18.19.0' | |
- name: Install the project dependencies | |
run: yarn install | |
- name: Format the code | |
run: yarn format | |
- name: Lint the code | |
run: yarn lint | |
- name: Start docker containers | |
working-directory: tools | |
run: docker-compose up -d | |
- name: Install dependencies | |
run: yarn install | |
- name: Start server and start e2e tests | |
run: yarn start:api:dev & yarn test:e2e | |
timeout-minutes: 15 | |
env: | |
LUM_NETWORK_ENDPOINT: https://node0.testnet.lum.network/rpc | |
DATABASE_URL: postgresql://postgres:emulator@127.0.0.1:5432/postgres | |
GOVERNANCE_SYNC_ENABLED: true | |
METRIC_SYNC_ENABLED: true | |
VALIDATOR_SYNC_ENABLED: true | |
BULLBOARD_PASSWORD: true | |
DFRACT_SYNC_ENABLED: true | |
REDIS_HOST: 127.0.0.1 | |
REDIS_PORT: 6379 | |
REDIS_PREFIX: lm-bridge | |
INGEST_ENABLED: true | |
INGEST_BACKWARD_ENABLED: false | |
PUSH_NOTIF_ENABLED: true | |
FAUCET_MNEMONIC: 'my mnemonic phrase' | |
PORT: 3000 | |
ENV: development | |
STARTING_HEIGHT: 1 | |
- name: Stop docker containers | |
working-directory: tools | |
run: docker-compose down |