File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments