Skip to content

Bugfix/prokod/#140

Bugfix/prokod/#140 #54

Workflow file for this run

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
name: Github Actions
on:
push:
branches:
- 'master'
pull_request:
branches:
- 'master'
jobs:
checks:
name: "Gradle Check"
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
strategy:
matrix:
java: [ '8', '11', '17']
steps:
- name: setup_jdk
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
- name: checkout
uses: actions/checkout@v3
- name: validation
uses: gradle/wrapper-validation-action@v1
- name: check
run: ./gradlew clean check --no-daemon
code_coverage:
name: "Gradle Check + Code coverage"
runs-on: ubuntu-latest
if: github.event_name == 'push'
steps:
- name: setup_jdk
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'temurin'
- name: checkout
uses: actions/checkout@v3
- name: validation
uses: gradle/wrapper-validation-action@v1
- name: code_coverage
run: ./gradlew clean codeCoverageTest jacocoCodeCoverageTestReport
- name: codecov_integration
uses: codecov/codecov-action@v2
with:
verbose: true