Skip to content

Commit

Permalink
Use maven-gh-actions-shared (#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
cstamas committed Nov 17, 2021
1 parent 3f60e86 commit d024af7
Showing 1 changed file with 8 additions and 29 deletions.
37 changes: 8 additions & 29 deletions .github/workflows/maven.yml → .github/workflows/maven-verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,37 +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

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@v1

0 comments on commit d024af7

Please sign in to comment.