[104] Add a nightly job to test against newer versions of Java and co… #216
Workflow file for this run
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: WildFly Glow - CI | ||
on: | ||
push: | ||
branches: | ||
- '**' | ||
pull_request: | ||
types: [opened, synchronize, reopened, ready_for_review] | ||
jobs: | ||
build: | ||
name: ${{ matrix.os }}-jdk${{ matrix.java }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, windows-latest] | ||
java: ['21', '17', '11'] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
path: wildfly-glow | ||
- uses: actions/checkout@v2 | ||
with: | ||
repository: wildfly/wildfly-maven-plugin | ||
path: wildfly-maven-plugin | ||
- name: Set up JDK ${{ matrix.java }} | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: ${{ matrix.java }} | ||
cache: 'maven' | ||
distribution: 'temurin' | ||
- name: Build and Test on ${{ matrix.java }} | ||
run: mvn clean install | ||
shell: bash | ||
working-directory: wildfly-glow | ||
- name: Run cli tests using bash | ||
if: ${{ martix.java != '11' }} | ||
Check failure on line 43 in .github/workflows/ci.yml GitHub Actions / WildFly Glow - CIInvalid workflow file
|
||
run: bash tests/run-cli-tests.sh | ||
shell: bash | ||
working-directory: wildfly-glow | ||
- name: Retrieve WildFly Glow version | ||
run: | | ||
echo "WILDFLY_GLOW_VERSION=$(mvn -B help:evaluate -Dexpression=project.version -DforceStdout -q)" >> $GITHUB_ENV | ||
shell: bash | ||
working-directory: wildfly-glow | ||
- name: Build and Test WildFly Maven Plugin on ${{ matrix.java }} | ||
run: mvn clean install -Dversion.org.wildfly.glow=${{ env.WILDFLY_GLOW_VERSION }} | ||
shell: bash | ||
working-directory: wildfly-maven-plugin | ||
- uses: actions/upload-artifact@v4 | ||
if: failure() | ||
with: | ||
name: surefire-reports-${{ matrix.os }}-${{ matrix.java }} | ||
path: | | ||
!**/target/** | ||
**/surefire-reports/*.txt |