koraktor/mavanagaiata

View on GitHub
.github/workflows/maven.yml

Summary

Maintainability
Test Coverage
name: Maven CI

on:
  push:
    paths:
      - pom.xml
      - src/main/**/*
      - .github/workflows/*
  pull_request:
    branches: [ master ]

concurrency:
  group: ${{ github.ref }}
  cancel-in-progress: true

jobs:
  build:
    runs-on: ubuntu-latest

    strategy:
      matrix:
        java: [ '8', '11', '17' ]
      fail-fast: false

    name: Java ${{ matrix.java }}

    steps:
      - uses: actions/checkout@v3

      - uses: actions/setup-java@v3
        with:
          distribution: 'temurin'
          java-version: ${{ matrix.java }}
          cache: 'maven'
        name: Set up JDK ${{ matrix.java }}

      - name: Compile with Maven
        run: mvn compile

      - name: Test with Maven
        run: mvn test