Browse Source

Update build.yaml

devel
Rohan Sircar 3 years ago
committed by GitHub
parent
commit
4c71b0f9e8
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 14
      .github/workflows/build.yaml

14
.github/workflows/build.yaml

@ -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
# uses: coursier/cache-action@v6
- name: Coursier cache
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.
Loading…
Cancel
Save