Skip to content

[BI-2234] - Improve exp dataset export file #2036

[BI-2234] - Improve exp dataset export file

[BI-2234] - Improve exp dataset export file #2036

Workflow file for this run

#
# See the NOTICE file distributed with this work for additional information
# regarding copyright ownership.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
name: maven build
on:
pull_request:
types: [opened, edited]
workflow_dispatch:
inputs:
brapi_server_image:
description: 'BrAPI Server Docker Image'
required: false
default: 'breedinginsight/brapi-java-server:develop'
bi_api_branch:
description: 'BI API Branch'
required: false
default: 'develop'
jobs:
build:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:latest
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: bidb
ports:
- 5432:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- name: Checkout BI API
uses: actions/checkout@v4
with:
ref: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.bi_api_branch || github.ref }}
- name: Set up JDK 13
uses: actions/setup-java@v4
with:
java-version: 13
distribution: 'zulu'
- name: Build with Maven
run: mvn validate -B flyway:migrate clean install --file pom.xml --settings settings.xml
env:
DB_USER: postgres
DB_PASSWORD: postgres
DB_SERVER: localhost
DB_NAME: bidb
GITHUB_ACTOR: $GITHUB_ACTOR
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WEB_BASE_URL: http://localhost:8080
BRAPI_DEFAULT_URL: https://test-server.brapi.org
API_INTERNAL_TEST_PORT: 8081
JWT_SECRET: ${{ secrets.JWT_SECRET }}
OAUTH_CLIENT_ID: 123abc
OAUTH_CLIENT_SECRET: asdfljkhalkbaldsfjasdfi238497098asdf
GITHUB_OAUTH_CLIENT_ID: 12345678901234567890
GITHUB_OAUTH_CLIENT_SECRET: 1234567890123456789012345678901234567890
BRAPI_REFERENCE_SOURCE: breedinginsight.org
BRAPI_DOCKER_IMAGE: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.brapi_server_image || 'breedinginsight/brapi-java-server:develop' }}