Skip to content

Run workflows on any major version branch (#614) #618

Run workflows on any major version branch (#614)

Run workflows on any major version branch (#614) #618

Workflow file for this run

name: Test
on:
pull_request:
branches:

Check failure on line 5 in .github/workflows/pr.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/pr.yaml

Invalid workflow file

You have an error in your yaml syntax on line 5
- master
- main
- [0-9]+.[0-9]+
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ 8, 11, 17 ]
name: Java ${{ matrix.java }} Test
steps:
- uses: actions/checkout@v2
- name: Setup java
uses: actions/setup-java@v2
with:
cache: 'maven'
java-version: ${{ matrix.java }}
distribution: 'temurin'
- run: |
./mvnw clean install -DskipTests -B
./mvnw verify -B
./mvnw javadoc:javadoc