This is an automated email from the ASF dual-hosted git repository.
sjaranowski pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-shared-utils.git
The following commit(s) were added to refs/heads/master by this push:
new 0e4aa75 GitHub Shared Actions
0e4aa75 is described below
commit 0e4aa7569ad335b7f14eb529573d815717f5537b
Author: Slawomir Jaranowski <[email protected]>
AuthorDate: Mon Jan 3 09:17:13 2022 +0100
GitHub Shared Actions
---
.github/workflows/{maven.yml => maven-verify.yml} | 35 ++++-------------------
1 file changed, 6 insertions(+), 29 deletions(-)
diff --git a/.github/workflows/maven.yml b/.github/workflows/maven-verify.yml
similarity index 52%
rename from .github/workflows/maven.yml
rename to .github/workflows/maven-verify.yml
index 4d7fff4..bbd7786 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven-verify.yml
@@ -15,36 +15,13 @@
# specific language governing permissions and limitations
# under the License.
-name: Java CI
+name: Verify
-on: [push, pull_request]
+on:
+ push:
+ pull_request:
jobs:
build:
- strategy:
- matrix:
- os: [ubuntu-latest, windows-latest, macOS-latest]
- fail-fast: false
-
- runs-on: ${{ matrix.os }}
-
- steps:
- - name: Checkout
- uses: actions/checkout@v2
-
- - name: Set up cache for ~/.m2/repository
- uses: actions/cache@v2
- with:
- path: ~/.m2/repository
- key: maven-${{ matrix.os }}-${{ hashFiles('**/pom.xml') }}
- restore-keys: |
- maven-${{ matrix.os }}-
-
- - name: Set up JDK 1.8
- uses: actions/setup-java@v2
- with:
- java-version: '8'
- distribution: 'adopt'
-
- - name: Build with Maven
- run: mvn clean verify -e -B -V
+ name: Verify
+ uses: apache/maven-gh-actions-shared/.github/workflows/maven-verify.yml@v2