|
|
@ -49,7 +49,8 @@ jobs: |
|
|
|
- name: Docker Run |
|
|
|
- name: Docker Run |
|
|
|
run: | |
|
|
|
run: | |
|
|
|
VERSION=`cat $(pwd)/pom.xml| grep "SNAPSHOT</version>" | awk -F "-SNAPSHOT" '{print $1}' | awk -F ">" '{print $2}'` |
|
|
|
VERSION=`cat $(pwd)/pom.xml| grep "SNAPSHOT</version>" | awk -F "-SNAPSHOT" '{print $1}' | awk -F ">" '{print $2}'` |
|
|
|
docker run -dit -e POSTGRESQL_USERNAME=test -e POSTGRESQL_PASSWORD=test -p 8888:8888 dolphinscheduler:$VERSION all |
|
|
|
mkdir -p /tmp/logs |
|
|
|
|
|
|
|
docker run -dit -e POSTGRESQL_USERNAME=test -e POSTGRESQL_PASSWORD=test -v /tmp/logs:/opt/dolphinscheduler/logs -p 8888:8888 dolphinscheduler:$VERSION all |
|
|
|
- name: Check Server Status |
|
|
|
- name: Check Server Status |
|
|
|
run: sh ./dockerfile/hooks/check |
|
|
|
run: sh ./dockerfile/hooks/check |
|
|
|
- name: Prepare e2e env |
|
|
|
- name: Prepare e2e env |
|
|
@ -65,7 +66,10 @@ jobs: |
|
|
|
- name: Run e2e Test |
|
|
|
- name: Run e2e Test |
|
|
|
run: cd ./e2e && mvn -B clean test |
|
|
|
run: cd ./e2e && mvn -B clean test |
|
|
|
- name: Collect logs |
|
|
|
- name: Collect logs |
|
|
|
run: | |
|
|
|
if: failure() |
|
|
|
mkdir -p ${LOG_DIR} |
|
|
|
uses: actions/upload-artifact@v1 |
|
|
|
docker logs dolphinscheduler > ${LOG_DIR}/dolphinscheduler.txt |
|
|
|
with: |
|
|
|
continue-on-error: true |
|
|
|
name: dslogs |
|
|
|
|
|
|
|
path: /tmp/logs |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|