Skip to content

Commit

Permalink
(doc) use shared worflow for gha
Browse files Browse the repository at this point in the history
  • Loading branch information
slachiewicz committed Dec 1, 2021
1 parent 0569dc9 commit 6236b1b
Showing 1 changed file with 8 additions and 28 deletions.
36 changes: 8 additions & 28 deletions .github/workflows/maven.yml → .github/workflows/maven-verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,36 +15,16 @@
# specific language governing permissions and limitations
# under the License.

name: Java CI
name: Verify

on: [push, pull_request]
on:
push:
branches-ignore:
- dependabot/**
pull_request:

jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
fail-fast: false
name: Verify
uses: apache/maven-gh-actions-shared/.github/workflows/maven-verify.yml@v1

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

0 comments on commit 6236b1b

Please sign in to comment.