Skip to content

Commit

Permalink
Add WildFly Maven Plugin build/test to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean Francois Denise committed Apr 19, 2024
1 parent d33e58b commit 7ef29f6
Showing 1 changed file with 20 additions and 6 deletions.
26 changes: 20 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,22 +22,36 @@ jobs:
java: ['21', '17', '11']

steps:
- uses: actions/checkout@v3
with:
path: wildfly-glow
- uses: actions/checkout@v2
- uses: actions/cache@v1
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
repository: wildfly/wildfly-maven-plugin
path: wildfly-maven-plugin
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v1
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
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@v2
if: failure()
with:
Expand Down

0 comments on commit 7ef29f6

Please sign in to comment.