This repository has been archived by the owner on Nov 22, 2023. It is now read-only.
Bump org.apache.maven.plugins:maven-enforcer-plugin from 3.1.0 to 3.4.1 #552
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '11' | |
distribution: 'temurin' | |
cache: maven | |
- name: Fetch dependencies and run quick tests | |
run: mvn install -P container | |
- name: Set up MySQL | |
uses: samin/[email protected] | |
with: | |
mysql version: '8.0' | |
- name: Run tests with Maven | |
run: | | |
export CI_BRANCH=${BRANCH_NAME_OR_REF#refs/heads/} | |
export CI_PULL_REQUEST=$(jq --raw-output .pull_request.number "$GITHUB_EVENT_PATH") | |
mvn test jacoco:report coveralls:report -B -q -DrepoToken=$COVERALLS_SECRET | |
env: | |
CI_NAME: github | |
BRANCH_NAME_OR_REF: ${{ github.head_ref || github.ref }} | |
CI_BUILD_NUMBER: ${{ github.run_id }} | |
CI_BUILD_URL: https://github.com/${{ github.repository }}/commit/${{ github.event.after }}/checks | |
COVERALLS_SECRET: ${{ secrets.GITHUB_TOKEN }} |