Skip to content

Commit

Permalink
Upgrade to latest GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
dain committed Mar 21, 2024
1 parent 7262a6c commit 9b92952
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 33 deletions.
32 changes: 16 additions & 16 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
name: CI
name: ci

on: [push, pull_request]
on:
- push
- pull_request

jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
java: ['8', '11', '17']
java-version:
- 8
- 21
steps:
- uses: actions/checkout@v3
- name: Setup test JDK ${{ matrix.java }}
uses: actions/setup-java@v3
- uses: actions/checkout@v1
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: ${{ matrix.java }}
- run: echo "test_java_home=$JAVA_HOME" >> $GITHUB_ENV
- name: Setup build JDK 17
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 17
- name: Maven Test
run: mvn install -V -P ci -B -Dtest_java_home=${{ env.test_java_home }}
distribution: 'temurin'
java-version: ${{ matrix.java-version }}
- name: Maven Install
run: mvn install -B -V -DskipTests -Dair.check.skip-all
- name: Maven Tests
run: mvn install -B -P ci
17 changes: 0 additions & 17 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -158,21 +158,4 @@
</plugins>
</pluginManagement>
</build>

<profiles>
<profile>
<id>ci</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<jvm>${test_java_home}/bin/java</jvm>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>

0 comments on commit 9b92952

Please sign in to comment.