(doc) added labels
1 file changed
tree: bc3334c8b3abe5ff7f622d94465a4b6fb73b6913
  1. .github/
  2. .asf.yaml
  3. .gitignore
  4. LICENSE
  5. pom.xml
  6. README.md
README.md

Apache Maven shared GitHub Actions

Usage

Create GitHub workflow in project with content:

name: Verify

on:
  push:
    branches-ignore:
      - dependabot/**
  pull_request:

jobs:
  build:
    name: Verify
    uses: apache/maven-gh-actions-shared/.github/workflows/maven-verify.yml@v1

Excludes from build matrix:

...
    uses: apache/maven-gh-actions-shared/.github/workflows/maven-verify.yml@v1
    with:
      matrix-exclude: >
        [ 
          {"jdk": "8"},   # exclude jdk 8 from all builds
          {"os": "windows-latest"}, # exclude windows from all builds
          {"jdk": "8", "os": "windows-latest"} # exclude jkd 8 on windows
        ]

Resources