Update build.yaml

This commit is contained in:
Rohan Sircar 2021-04-15 20:29:47 +05:30 committed by GitHub
parent c7860c6611
commit 4c71b0f9e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,34 +28,28 @@ jobs:
POSTGRES_PASSWORD: postgres POSTGRES_PASSWORD: postgres
POSTGRES_USER: codegenuser POSTGRES_USER: codegenuser
POSTGRES_DB: codegendb POSTGRES_DB: codegendb
port:
- 5435:5432
# Set health checks to wait until postgres has started # Set health checks to wait until postgres has started
options: >- options: >-
--health-cmd pg_isready --health-cmd pg_isready
--health-interval 10s --health-interval 10s
--health-timeout 5s --health-timeout 5s
--health-retries 5 --health-retries 5
ports:
- 5435:5432
steps: steps:
# Downloads a copy of the code in your repository before running CI tests # Downloads a copy of the code in your repository before running CI tests
- name: Check out repository code - name: Check out repository code
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Coursier cache
# - name: Coursier cache uses: coursier/cache-action@v6
# uses: coursier/cache-action@v6
- name: Setup - name: Setup
uses: olafurpg/setup-scala@v10 uses: olafurpg/setup-scala@v10
with: with:
java-version: adopt@1.11 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 - name: Migrate
run: csbt flyway/flywayMigrate run: csbt flyway/flywayMigrate
- name: Run Tests - name: Run Tests
run: csbt test run: csbt test
- name: Package - name: Package
run: csbt docker:stage run: csbt docker:stage
# Environment variable used by the `client.js` script to create a new PostgreSQL client.