File tree Expand file tree Collapse file tree 2 files changed +40
-1
lines changed
Expand file tree Collapse file tree 2 files changed +40
-1
lines changed Original file line number Diff line number Diff line change 1+ # This workflow will test the guide application.
2+ # For more information about building and testing Java,
3+ # see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
4+
5+ name : Test application
6+
7+ on :
8+ pull_request :
9+ branches : [ qa ]
10+
11+ jobs :
12+ java8build :
13+ runs-on : ubuntu-latest
14+ defaults :
15+ run :
16+ working-directory : finish
17+
18+ steps :
19+ - uses : actions/checkout@v2
20+ - name : Set up JDK 1.8
21+ uses : actions/setup-java@v1
22+ with :
23+ java-version : 1.8
24+ - run : unset _JAVA_OPTIONS
25+
26+ - name : Run tests
27+ run : chmod +x ../scripts/travisTest.sh && sudo ../scripts/travisTest.sh
28+
29+ - name : Post tests
30+ if : always()
31+ run : |
32+ logsPath=$(sudo find . -name "console.log");
33+ sudo cat $logsPath | sudo grep Launching
34+
35+ - name : Archive server logs if failed
36+ if : failure()
37+ uses : actions/upload-artifact@v2
38+ with :
39+ name : server-logs
40+ path : finish/target/liberty/wlp/usr/servers/defaultServer/logs/
Original file line number Diff line number Diff line change @@ -38,4 +38,3 @@ notifications:
3838branches:
3939 only:
4040 - master
41- - qa
You can’t perform that action at this time.
0 commit comments