Skip to content

AJ-1188 Add wds consumer tests against datarepo provider #705

AJ-1188 Add wds consumer tests against datarepo provider

AJ-1188 Add wds consumer tests against datarepo provider #705

name: Build and Integration Test
on:
pull_request:
branches: [ '**' ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'temurin'
cache: 'gradle'
- name: Build all projects without running tests
run: ./gradlew --build-cache build -x test
integration-tests:
needs: [ build ]
runs-on: ubuntu-latest
services:
postgres:
image: postgres:13.1
env:
POSTGRES_PASSWORD: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports: [ "5432:5432" ]
steps:
- uses: actions/checkout@v3
- name: Install pg_dump
run: sudo apt install postgresql-14 postgresql-contrib
- name: Initialize Postgres DB
env:
PGPASSWORD: postgres
run: psql -h 127.0.0.1 -U postgres -f ./local-dev/local-postgres-init.sql
- name: Set up JDK
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'temurin'
cache: 'gradle'
- name: Cache Gradle packages
uses: actions/cache@v3
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
- name: Build, assemble, and integration test
id: build-test
run: ./gradlew integrationTest
- name: Upload Test Reports
if: always()
uses: actions/upload-artifact@v1
with:
name: Test Reports
path: service/build/reports