-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- use shared actions - fix build with empty local repository
- Loading branch information
1 parent
012e059
commit d9f1d82
Showing
5 changed files
with
12 additions
and
109 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,96 +1,8 @@ | ||
name: GitHub CI | ||
|
||
on: | ||
workflow_dispatch: {} | ||
push: | ||
branches: | ||
- '*' | ||
pull_request: | ||
branches: | ||
- 'main' | ||
- 'master' | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up JDK | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
cache: 'maven' | ||
|
||
- name: Prepare maven build | ||
shell: bash | ||
# cannot go offline, the system dependency is being looked up on Central. | ||
# blocked by MDEP-568 | ||
run: mvn --show-version --errors --batch-mode validate | ||
|
||
- name: Build with Maven | ||
shell: bash | ||
run: mvn --show-version --errors --batch-mode "-Dinvoker.streamLogsOnFailures=true" clean verify | ||
|
||
site: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up JDK | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
cache: 'maven' | ||
|
||
- name: Build with Maven | ||
shell: bash | ||
run: mvn --show-version --errors --batch-mode clean site site:stage | ||
|
||
build-all: | ||
|
||
needs: build | ||
|
||
strategy: | ||
matrix: | ||
maven: [ '3.2.5', '3.3.9', '3.6.3', '3.8.4' ] | ||
os: [ ubuntu-latest, windows-latest, macOS-latest ] | ||
java: | ||
# Hotspot VM, the "default" VM | ||
- version: 8 | ||
dist: temurin | ||
- version: 11 | ||
dist: temurin | ||
- version: 17 | ||
dist: temurin | ||
fail-fast: false | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up JDK | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: ${{ matrix.java.version }} | ||
distribution: ${{ matrix.java.dist }} | ||
cache: 'maven' | ||
|
||
- name: Set up Maven | ||
shell: bash | ||
run: mvn -N "io.takari:maven:0.7.7:wrapper" "-Dmaven=${{ matrix.maven }}" | ||
|
||
- name: Prepare maven build | ||
shell: bash | ||
run: ./mvnw --show-version --errors --batch-mode validate | ||
|
||
- name: Build with Maven | ||
shell: bash | ||
run: ./mvnw --show-version --errors --batch-mode "-Dinvoker.streamLogsOnFailures=true" clean verify javadoc:javadoc | ||
name: Verify | ||
uses: apache/maven-gh-actions-shared/.github/workflows/maven-verify.yml@v3 |
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,7 +62,7 @@ | |
<scm> | ||
<connection>scm:git:https://github.com/mojohaus/properties-maven-plugin.git</connection> | ||
<developerConnection>scm:git:ssh://[email protected]/mojohaus/properties-maven-plugin.git</developerConnection> | ||
<url>https://github.com/mojohaus/properties-maven-plugin/tree/${scm.tag}</url> | ||
<url>https://github.com/mojohaus/properties-maven-plugin/tree/master</url> | ||
<tag>master</tag> | ||
</scm> | ||
<issueManagement> | ||
|
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 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