Add a change to fire a new job #10
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
# 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: Test permissions | |
on: | |
push: | |
branches: | |
- '**' | |
jobs: | |
build: | |
name: build-${{ matrix.os }}-jdk${{ matrix.java }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [windows-latest] | |
java: ['17'] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK ${{ matrix.java }} | |
uses: actions/setup-java@v3 | |
with: | |
java-version: ${{ matrix.java }} | |
distribution: 'temurin' | |
cache: 'maven' | |
- name: Build ${{ matrix.java }} | |
run: mvn -U -B -ntp clean install -DskipTests | |
shell: bash | |
- name: Test ${{ matrix.java }} | |
run: | | |
cd testsuite/manualmode | |
mvn clean install -Dts.bootable -Dtest=org.jboss.as.test.manualmode.secman.PermissionsDeploymentTestCase -Dtest.num.sleep=6 | |
shell: bash | |
- name: Find reports | |
run: | | |
{ | |
echo 'SUREFIRE_REPORTS<<EOF' | |
find . -path '**/surefire-reports/*.xml' | |
echo EOF | |
} >> "$GITHUB_ENV" | |
shell: bash | |
- name: Find server logs | |
run: | | |
{ | |
echo 'SERVER_LOGS<<EOF' | |
find . -path '**/server.log' | |
echo EOF | |
} >> "$GITHUB_ENV" | |
shell: bash | |
- name: Upload Test Reports on Failure | |
uses: actions/upload-artifact@v4 | |
with: | |
name: surefire-reports-${{ matrix.os }}-${{ matrix.java }} | |
path: ${{ env.SUREFIRE_REPORTS }} | |
- name: Upload Server Logs on Failure | |
uses: actions/upload-artifact@v4 | |
with: | |
name: server-logs-${{ matrix.os }}-${{ matrix.java }} | |
path: ${{ env.SERVER_LOGS }} |