Skip to content

Commit

Permalink
[MSHARED-999] Shared GitHub Actions (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
slawekjaranowski committed Nov 25, 2021
1 parent 2057689 commit d0e404d
Showing 1 changed file with 8 additions and 29 deletions.
37 changes: 8 additions & 29 deletions .github/workflows/maven.yml → .github/workflows/maven-verify.yml
Expand Up @@ -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

0 comments on commit d0e404d

Please sign in to comment.