Skip to content

Commit a0f4aef

Browse files
authored
Merge pull request #88 from OpenLiberty/qa
Merge qa to master: use github action to test qa branch
2 parents 49f053d + 6f9c488 commit a0f4aef

File tree

2 files changed

+40
-1
lines changed

2 files changed

+40
-1
lines changed

.github/workflows/test.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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/

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,3 @@ notifications:
3838
branches:
3939
only:
4040
- master
41-
- qa

0 commit comments

Comments
 (0)