From f43e03cc5a08d66317fd181430c01c6996c09cb5 Mon Sep 17 00:00:00 2001 From: Slawomir Jaranowski Date: Tue, 23 Nov 2021 15:39:25 +0100 Subject: [PATCH] [MSHARED-999] Shared GitHub Actions --- .../workflows/{maven.yml => maven-verify.yml} | 37 ++++--------------- 1 file changed, 8 insertions(+), 29 deletions(-) rename .github/workflows/{maven.yml => maven-verify.yml} (50%) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven-verify.yml similarity index 50% rename from .github/workflows/maven.yml rename to .github/workflows/maven-verify.yml index 5141fa7..aef403b 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven-verify.yml @@ -15,38 +15,17 @@ # specific language governing permissions and limitations # under the License. -name: GitHub CI +name: Verify -on: [push, pull_request] +on: + push: + branches-ignore: + - dependabot/** + pull_request: jobs: build: + name: Verify + uses: apache/maven-gh-actions-shared/.github/workflows/maven-verify.yml@v1 - strategy: - matrix: - os: [ubuntu-latest, windows-latest, macOS-latest] - java: [8, 11, 17-ea] - fail-fast: false - runs-on: ${{ matrix.os }} - - steps: - - name: Checkout - uses: actions/checkout@v2.3.4 - - - 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.3.1 - with: - java-version: ${{ matrix.java }} - distribution: 'temurin' - - - name: Build with Maven - run: mvn verify -e -B -V -P run-its