Skip to content

Commit 27cdf45

Browse files
authored
Merge pull request #1 from odpf/workflow
Adding integration test
2 parents f882828 + 8369d45 commit 27cdf45

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

.github/workflows/integration.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: integration-test
2+
3+
on:
4+
# Trigger the workflow on push or pull request,
5+
# but only for the main branch
6+
push:
7+
branches:
8+
- main
9+
pull_request:
10+
branches:
11+
- main
12+
jobs:
13+
integration-test:
14+
runs-on: ubuntu-latest
15+
env:
16+
flinkVersion: "1.9.0"
17+
POSTGRES_DB: test_db
18+
POSTGRES_USER: root
19+
POSTGRES_PASSWORD: root
20+
POSTGRES_HOST_AUTH_METHOD: trust
21+
services:
22+
postgres:
23+
image: postgres:12.2-alpine
24+
elasticsearch:
25+
env:
26+
xpack.security.enabled: false
27+
discovery.type: single-node
28+
image: docker.elastic.co/elasticsearch/elasticsearch:6.2.1
29+
options: --entrypoint bin/elasticsearch
30+
steps:
31+
- uses: actions/checkout@v2
32+
- name: Set up JDK 1.8
33+
uses: actions/setup-java@v1
34+
with:
35+
java-version: 1.8
36+
- name: Grant execute permission for gradlew
37+
run: chmod +x gradlew
38+
- name: Run test
39+
run: PG_HOST=postgres ES_HOST=elasticsearch ./gradlew integrationTest

0 commit comments

Comments
 (0)