Skip to content

Commit

Permalink
Merge pull request #65 from marekkopecky/ci
Browse files Browse the repository at this point in the history
Add CI testing
  • Loading branch information
tadamski authored Aug 8, 2024
2 parents 98d857d + 62a873e commit fc76427
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# 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: EJB Test Suite

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 }}
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
jdk-distribution: [temurin]
jdk-version: [17]
steps:
- uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.jdk-distribution }} ${{ matrix.jdk-version }}
uses: actions/setup-java@v4
with:
distribution: ${{ matrix.jdk-distribution }}
java-version: ${{ matrix.jdk-version }}
cache: 'maven'
- name: Prepare server
run: mvn --batch-mode --no-transfer-progress package -DspecificModule=prepare
- name: Run Tests
run: mvn --batch-mode --no-transfer-progress dependency:tree clean verify --fail-at-end -Dmaven.test.redirectTestOutputToFile=true
- uses: actions/upload-artifact@v4
if: failure()
with:
name: surefire-${{ matrix.jdk-distribution }}-${{ matrix.jdk-version }}-${{ matrix.os }}
path: '**/surefire-reports/*.txt'

0 comments on commit fc76427

Please sign in to comment.