Skip to content

Commit

Permalink
Use Shared GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
slawekjaranowski committed Jan 9, 2022
1 parent 9929303 commit 36a2030
Showing 1 changed file with 6 additions and 28 deletions.
34 changes: 6 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,35 +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@v1
with:
java-version: 1.8

- name: Build with Maven
run: mvn -e -B -V clean verify -P run-its
name: Verify
uses: apache/maven-gh-actions-shared/.github/workflows/maven-verify.yml@v2

0 comments on commit 36a2030

Please sign in to comment.