Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shared GitHub Actions #75

Merged
merged 1 commit into from
Nov 26, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/[email protected]
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