Skip to content

Commit

Permalink
[EJBCLIENT-505] CI Add integration testing to CI script (#644)
Browse files Browse the repository at this point in the history
  • Loading branch information
tadamski committed Jul 25, 2023
1 parent df9e3ab commit 3f02471
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 1 deletion.
12 changes: 12 additions & 0 deletions .github/workflows/integration.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
echo "INTEGRATION TESTS"

EJB_CLIENT_REPOSITORY=$1
EJB_CLIENT_BRANCH=$2

git clone --depth=1 https://github.com/wildfly/ejb-client-testsuite

cd ejb-client-testsuite

mvn -B -ntp package -DspecificModule=prepare -Dejb.client.repository=${EJB_CLIENT_REPOSITORY} -Dejb.client.branch=${EJB_CLIENT_BRANCH}
mvn -B -ntp dependency:tree clean verify --fail-at-end

30 changes: 30 additions & 0 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Wildfly EJB Client CI Integration Tests

on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]

jobs:
build-test-matrix:
name: ${{ matrix.jdk-distribution}}-${{ matrix.jdk-version }}-${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
jdk-distribution: [temurin]
jdk-version: [17]
steps:
- uses: actions/checkout@v3
- name: Set up JDK ${{ matrix.jdk-distribution }} ${{ matrix.jdk-version }}
uses: actions/setup-java@v3
with:
distribution: ${{ matrix.jdk-distribution }}
java-version: ${{ matrix.jdk-version }}
- name: Run Tests
run: bash ${GITHUB_WORKSPACE}/.github/workflows/integration.sh ${{github.event.pull_request.head.repo.html_url}} ${{github.head_ref}}
- uses: actions/upload-artifact@v3
if: failure()
with:
name: surefire-${{ matrix.jdk-distribution }}-${{ matrix.jdk-version }}-${{ matrix.os }}
path: '**/surefire-reports/*.txt'
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml → .github/workflows/unit.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven

name: Wildfly EJB Client CI
name: Wildfly EJB Client CI Unit Tests

on:
pull_request:
Expand Down

0 comments on commit 3f02471

Please sign in to comment.