Skip to content

exclude executons on commits that are already handled by PRs #1

exclude executons on commits that are already handled by PRs

exclude executons on commits that are already handled by PRs #1

Workflow file for this run

name: Java CI with Maven

Check failure on line 1 in .github/workflows/test.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/test.yml

Invalid workflow file

(Line: 5, Col: 5): A sequence was not expected, (Line: 10, Col: 7): Unexpected value 'github.event_name != 'push' || github.event.pull_request == null'
on:
push:
- develop
- main
pull_request:
jobs:
if: github.event_name != 'push' || github.event.pull_request == null
BuildAndTest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 1.8
uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-package: jdk
java-version: '8'
- name: Build with Maven
run: mvn -B verify --file pom.xml