Skip to content

Commit

Permalink
[releng] Add GitHub Action workflow to run validation tests
Browse files Browse the repository at this point in the history
Signed-off-by: Pierre-Charles David <[email protected]>
  • Loading branch information
pcdavid committed Feb 22, 2024
1 parent 907889f commit 9e835bc
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Sirius Desktop verification build

on:
push:
pull_request:
workflow_dispatch:

jobs:
build:
strategy:
fail-fast: false
matrix:
test-suite: [ gerrit-junit, gerrit-swtbot, gerrit-swtbot-sequence ]
runs-on: ubuntu-latest
name: Test suite ${{ matrix.test-suite }}
steps:
- uses: actions/checkout@v4
- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
cache: 'maven'
- name: Build and run ${{ matrix.test-suite }} test suite
with:
run: >-
xvfb-run -s '-screen 0 1440x900x24' mvn -V -B -fae -ntp -Dplatform-version-name=2023-03 -f packaging/org.eclipse.sirius.parent/pom.xml -P headless,full,${{ matrix.test-suite }} clean verify
- name: Upload test results for ${{ matrix.test-suite }} test suite
if: always()
uses: actions/[email protected]
with:
name: test-results-${{ matrix.test-suite }}
if-no-files-found: error
path: |
${{ github.workspace }}/**/target/surefire-reports/*.xml

0 comments on commit 9e835bc

Please sign in to comment.