Skip to content

chore: add java versions starting from 11 to build pipeline #1

chore: add java versions starting from 11 to build pipeline

chore: add java versions starting from 11 to build pipeline #1

Workflow file for this run

# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Verify Code
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
strategy:
matrix:

Check failure on line 20 in .github/workflows/maven.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/maven.yml

Invalid workflow file

You have an error in your yaml syntax on line 20
java: [ '11', '12', '13', '14', '15', '16' '17', '18', '19', '20', '21', '22' ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: 'open'
cache: maven
- name: Build with Maven
run: mvn -B -ntp verify --file pom.xml