Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven

name: Java CI with Maven

on:
push:
branches: ['**']
pull_request:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-latest

services:
# Label used to access the service container
postgres:
# Docker Hub image
image: postgres
# Provide the password for postgres
env:
POSTGRES_PASSWORD: postgres
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
# Maps tcp port 5432 on service container to the host
- 5432:5432

steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Build with Maven
run: mvn -DPOSTGRES_HOST=$POSTGRES_HOST -DPOSTGRES_PORT=$POSTGRES_PORT -B package --file pom.xml
env:
# The hostname used to communicate with the PostgreSQL service container
POSTGRES_HOST: localhost
# The default PostgreSQL port
POSTGRES_PORT: 5432
6 changes: 5 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
<name>cimt AG</name>
</organization>
<name>Job Instance Components library</name>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>org.slf4j</groupId>
Expand Down Expand Up @@ -43,6 +46,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
Expand All @@ -55,7 +59,7 @@
<configuration>
<copyFromSourceBaseDir>${project.basedir}/talend_component</copyFromSourceBaseDir>
<componentBaseDir>${project.basedir}/talend_component</componentBaseDir>
<studioUserComponentFolder>/Data/Talend/Studio/talend_user_components</studioUserComponentFolder>
<!-- <studioUserComponentFolder>/Data/Talend/Studio/talend_user_components</studioUserComponentFolder> -->
</configuration>
<executions>
<execution>
Expand Down
16 changes: 0 additions & 16 deletions src/main/resources/.com.apple.backupd.mdmv56989144

This file was deleted.

2 changes: 2 additions & 0 deletions src/main/resources/create_table_pgsql.sql
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
CREATE SCHEMA IF NOT EXISTS dwh_manage;

--drop table dwh_manage.job_instances;
create table dwh_manage.job_instance_status (
job_instance_id bigint not null,
Expand Down
Loading