Skip to content

OnPrepareRoundCommand.ts aktualisieren #85

OnPrepareRoundCommand.ts aktualisieren

OnPrepareRoundCommand.ts aktualisieren #85

Workflow file for this run

name: build
on:
push:
branches:
- master
jobs:
coverage:
name: coverage
runs-on: ubuntu-latest
services:
postgres:
image: postgis/postgis:13-3.2-alpine
ports:
# Maps tcp port 5432 on service container to the host
- 5432:5432
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: 'root'
POSTGRES_DB: geofind
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@master
with:
node-version: '15'
- run: npm install -g yarn
- run: yarn install
- run: yarn workspace @geofind/api build
- run: |
echo "localhost:5432:geofind:postgres:root" > ~/.pgpass
chmod 600 ~/.pgpass
pg_restore --dbname geofind --host=localhost --port=5432 --username=postgres ./config/dumps/db.dump
- uses: paambaati/codeclimate-action@v3.0.0
env:
CC_TEST_REPORTER_ID: 67126294d2dca1578a26d1d9d843edcb99e8bb1c78d729e7f5887254475f077b
NODE_ENV: production
PORT: 3000
DB_USER: postgres
DB_PASSWORD: root
DB_PORT: 5432
DB_DATABASE: geofind
DB_HOST: localhost
NO_SSL: 1
with:
workingDirectory: ./packages/api
coverageCommand: yarn run coverage