From 4c71b0f9e851f908b39bb5edbc577da1b8a2021b Mon Sep 17 00:00:00 2001 From: Rohan Sircar <47449547+rohan-sircar@users.noreply.github.com> Date: Thu, 15 Apr 2021 20:29:47 +0530 Subject: [PATCH] Update build.yaml --- .github/workflows/build.yaml | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 666cf69..2aa86e3 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -28,34 +28,28 @@ jobs: POSTGRES_PASSWORD: postgres POSTGRES_USER: codegenuser POSTGRES_DB: codegendb - port: - - 5435:5432 # Set health checks to wait until postgres has started options: >- --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 + ports: + - 5435:5432 steps: # Downloads a copy of the code in your repository before running CI tests - name: Check out repository code uses: actions/checkout@v2 - - # - name: Coursier cache - # uses: coursier/cache-action@v6 + - name: Coursier cache + uses: coursier/cache-action@v6 - name: Setup uses: olafurpg/setup-scala@v10 with: java-version: adopt@1.11 - # - name: Connect to PostgreSQL - # # Runs a script that creates a PostgreSQL client, populates - # # the client with data, and retrieves data - # run: node client.js - name: Migrate run: csbt flyway/flywayMigrate - name: Run Tests run: csbt test - name: Package run: csbt docker:stage - # Environment variable used by the `client.js` script to create a new PostgreSQL client.