-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[releng] Add GitHub Action workflow to run validation tests
Signed-off-by: Pierre-Charles David <[email protected]>
- Loading branch information
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |