Skip to content

51 Try to improve github jobs #9

51 Try to improve github jobs

51 Try to improve github jobs #9

Workflow file for this run

name: Java CI with Maven
on:
push:
branches:
- '*'
pull_request:
jobs:
checkstyle:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: maven
- name: Checkstyle with maven
run: mvn checkstyle:check
build:
runs-on: ubuntu-latest
needs: checkstyle
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: maven
- name: Compile with maven
run: mvn clean compile
test:
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: maven
- name: Run tests with maven
run: mvn test