Skip to content

Commit

Permalink
Switch to Shared GH Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
cstamas committed Nov 17, 2022
1 parent d198c49 commit 7c95b79
Showing 1 changed file with 7 additions and 25 deletions.
32 changes: 7 additions & 25 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,11 @@
name: ci
name: Verify

on: [push, pull_request]
on:
push:
pull_request:

jobs:
setup:
runs-on: ubuntu-latest
steps:
- name: Stop old builds
if: github.ref != 'refs/heads/master'
uses: styfle/cancel-workflow-action@0.11.0
with:
access_token: ${{ github.token }}

build:
needs: setup
strategy:
matrix:
java: [ 11, 17 ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: "Set up JDK ${{ matrix.java }}"
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java }}
distribution: 'temurin'
- name: Build & Test
run: ./mvnw -B verify
name: Verify
uses: takari/takari-gh-actions/.github/workflows/ci.yml@v1

0 comments on commit 7c95b79

Please sign in to comment.