-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test github actions - move yml to **/workflows
Signed-off-by: Aleksandar Zivkovic <[email protected]>
- Loading branch information
1 parent
6f30113
commit 90ddf51
Showing
1 changed file
with
13 additions
and
4 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,42 @@ | ||
name: Measure coverage | ||
|
||
on: | ||
pull_request: [main] | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
pull-requests: write | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- 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 | ||
- uses: actions/github-script@v7 | ||
- name: Add coverage to PR | ||
uses: actions/github-script@v7 | ||
if: github.event_name == 'pull_request' | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
script: | | ||
github.issues.createComment({ | ||
github.rest.issues.createComment({ | ||
issue_number: ${{ github.event.number }}, | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
body: 'test test' | ||
}) |