Skip to content

Commit

Permalink
Shared GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
slawekjaranowski authored and slachiewicz committed Nov 26, 2021
1 parent e9589f2 commit e0356e8
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,37 +15,17 @@
# specific language governing permissions and limitations
# under the License.

name: Java CI with Maven
name: Verify

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

jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
java: [8, 11, 16, 17-ea]
fail-fast: true
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: Cache local Maven repository
uses: actions/cache@v2.1.6
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Set up JDK
uses: actions/setup-java@v2
with:
java-version: ${{ matrix.java }}
distribution: 'adopt'

- name: Build with Maven
run: mvn verify -e -B -V -P run-its

0 comments on commit e0356e8

Please sign in to comment.