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_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.