Skip to content

Add a trace on startup #19

Add a trace on startup

Add a trace on startup #19

# 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
if: failure()
run: |
{
echo 'SUREFIRE_REPORTS<<EOF'
find . -path '**/surefire-reports/*.xml'
echo EOF
} >> "$GITHUB_ENV"
shell: bash
- name: Find server logs
if: failure()
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
if: failure()
with:
name: surefire-reports-${{ matrix.os }}-${{ matrix.java }}
path: ${{ env.SUREFIRE_REPORTS }}
- name: Upload Server Logs on Failure
uses: actions/upload-artifact@v4
if: failure()
with:
name: server-logs-${{ matrix.os }}-${{ matrix.java }}
path: ${{ env.SERVER_LOGS }}