Skip to content

Revert "Cicd/13 add to GitHub actions coverage tests on pull request" #11

Revert "Cicd/13 add to GitHub actions coverage tests on pull request"

Revert "Cicd/13 add to GitHub actions coverage tests on pull request" #11

Workflow file for this run

name: Measure coverage
on:
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK 22
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '22'
cache: maven
- name: Run Coverage
run: |
chmod +x mvnw
./mvnw clean verify
- name: Add coverage to PR
uses: actions/github-script@v7
if: github.event_name == 'pull_request'
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
github.rest.issues.createComment({
issue_number: ${{ github.event.number }},
owner: context.repo.owner,
repo: context.repo.repo,
body: 'test test'
})