Skip to content

fix(deps): update junit5 monorepo to v5.11.3 #218

fix(deps): update junit5 monorepo to v5.11.3

fix(deps): update junit5 monorepo to v5.11.3 #218

Workflow file for this run

name: coverage
on:
push:
branches: [ main ]
pull_request:
branches: '*'
jobs:
badge:
runs-on: ubuntu-latest
continue-on-error: true
env:
SECRET: dna8sdh8ashd8asnd8asd
ISSUER: turnierverwaltung
USER: root
PASSWORD: secret
DATABASE: people_management-test
SERVER: localhost
PORT: 8080
PORT_DB: 5432
PGPASSWORD: secret
services:
postgres:
# Docker Hub image
image: postgres:latest
env:
POSTGRES_USER: "root"
POSTGRES_PASSWORD: "secret"
POSTGRES_DB: "people_management-test"
ports:
- 5432:5432
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- name: Checkout Repo
uses: actions/checkout@v2
- name: Set up JDK 15
uses: actions/setup-java@v1
with:
java-version: 15
- name: Test with gradle
run: ./gradlew test
# Create Badge
- name: Generate Jacoco Badge
id: jacoco
uses: cicirello/[email protected]
with:
jacoco-csv-file: build/reports/jacoco/test/jacocoTestReport.csv
- name: Log coverage percentage
run: |
echo "coverage = ${{ steps.jacoco.outputs.coverage }}"
# Create Pull-Request
- name: Create pull request
if: ${{ github.event_name == 'push' }}
uses: peter-evans/[email protected]
with:
title: 'Autogenerated Jacoco Coverage Badge'
body: |
Autogenerated Jacoco coverage badge, generated by
the [jacoco-badge-generator](https://github.com/cicirello/jacoco-badge-generator)
GitHub action.
commit-message: Autogenerated Jacoco Coverage Badge
labels: |
report
automated
automerge
branch: create-pull-request/badge
delete-branch: true