Skip to content

Commit

Permalink
test github actions - move yml to **/workflows
Browse files Browse the repository at this point in the history
Signed-off-by: Aleksandar Zivkovic <[email protected]>
  • Loading branch information
alekszivko committed Dec 23, 2024
1 parent 6f30113 commit 90ddf51
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/coverage.yml → .github/workflows/coverage.yml
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'
})

0 comments on commit 90ddf51

Please sign in to comment.