name: CI

on:
  pull_request:
    branches:
      - main
  push:
    branches:
      - main

jobs:
  build:
    runs-on: 'ubuntu-latest'
    steps:
    - uses: actions/checkout@v2
    - name: Set up JDK
      uses: actions/setup-java@v2
      with:
        distribution: 'zulu'
        java-version: '8'
    - name: print Java version
      run: java -version
    - uses: actions/cache@v2
      with:
        path: ~/.m2/repository
        key: maven-${{ runner.os }}-${{ hashFiles('**/pom.xml') }}
        restore-keys: |
          maven-${{ runner.os }}-${{ hashFiles('**/pom.xml') }}
          maven-${{ runner.os }}-
          maven-
    - name: Build
      run: mvn --no-transfer-progress -B clean spotless:check verify
    - name: Clean before caching
      run: find ~/.m2 -name "_remote.repositories" | xargs --no-run-if-empty rm

name: CI

on:
  pull_request:
    branches:
      - main
  push:
    branches:
      - main

jobs:
  build:
    runs-on: 'ubuntu-latest'
    steps:
    - uses: actions/checkout@v2
    - name: Set up JDK
      uses: actions/setup-java@v2
      with:
        distribution: 'zulu'
        java-version: '8'
    - name: print Java version
      run: java -version
    - uses: actions/cache@v2
      with:
        path: ~/.m2/repository
        key: maven-${{ runner.os }}-${{ hashFiles('**/pom.xml') }}
        restore-keys: |
          maven-${{ runner.os }}-${{ hashFiles('**/pom.xml') }}
          maven-${{ runner.os }}-
          maven-
    - name: Build
      run: mvn --no-transfer-progress -B clean spotless:check test
    - name: Clean before caching
      run: find ~/.m2 -name "_remote.repositories" | xargs --no-run-if-empty rm

Fix CI failing with the gpg plugin
Fix CI failing with the gpg plugin

Motivation:
- CI fails when the gpg plugin tries to sign artifacts

Modifications:
- run 'mvn test' instead of 'mvn verify'
- the other task in verify is spoteless, which is alredy run by the CI
