Skip to content

Commit caf0146

Browse files
committed
[WEJBHTTP-114] Add integration testing to CI script
1 parent a6665c8 commit caf0146

File tree

3 files changed

+42
-1
lines changed

3 files changed

+42
-1
lines changed

.github/workflows/integration.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
echo "INTEGRATION TESTS"
2+
3+
EJB_CLIENT_REPOSITORY=$1
4+
EJB_CLIENT_BRANCH=$2
5+
6+
git clone --depth=1 https://github.com/wildfly/ejb-client-testsuite
7+
8+
cd ejb-client-testsuite
9+
10+
mvn -B -ntp package -DspecificModule=prepare -Dhttp.client.repository=${EJB_CLIENT_REPOSITORY} -Dhttp.client.branch=${EJB_CLIENT_BRANCH}
11+
mvn -B -ntp dependency:tree clean verify --fail-at-end

.github/workflows/integration.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Wildfly HTTP Client CI Integration Tests
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened, ready_for_review]
6+
7+
jobs:
8+
build-test-matrix:
9+
name: ${{ matrix.jdk-distribution}}-${{ matrix.jdk-version }}-${{ matrix.os }}
10+
runs-on: ${{ matrix.os }}
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
os: [ubuntu-latest]
15+
jdk-distribution: [temurin]
16+
jdk-version: [17]
17+
steps:
18+
- uses: actions/checkout@v3
19+
- name: Set up JDK ${{ matrix.jdk-distribution }} ${{ matrix.jdk-version }}
20+
uses: actions/setup-java@v3
21+
with:
22+
distribution: ${{ matrix.jdk-distribution }}
23+
java-version: ${{ matrix.jdk-version }}
24+
- name: Run Tests
25+
run: bash ${GITHUB_WORKSPACE}/.github/workflows/integration.sh ${{github.event.pull_request.head.repo.html_url}} ${{github.head_ref}}
26+
- uses: actions/upload-artifact@v3
27+
if: failure()
28+
with:
29+
name: surefire-${{ matrix.jdk-distribution }}-${{ matrix.jdk-version }}-${{ matrix.os }}
30+
path: '**/surefire-reports/*.txt'

.github/workflows/ci.yml renamed to .github/workflows/unit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This workflow will build a Java project with Maven
22
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
33

4-
name: WildFly Http Client CI
4+
name: WildFly Http Client Unit CI
55

66
on:
77
pull_request:

0 commit comments

Comments
 (0)