-
Notifications
You must be signed in to change notification settings - Fork 11
37 lines (29 loc) · 1.05 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Build Workflow
run-name: 'Build Workflow -- ${{ github.head_ref || github.ref_name }}'
on:
push:
pull_request:
workflow_dispatch:
env:
BRANCH_NAME: ${{github.ref_name}}
jobs:
build-job:
name: Build Job
runs-on: ubuntu-24.04
steps:
- uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'zulu'
- name: Build IKMDEV Code
uses: ikmdev/[email protected]
with:
branch_name: ${{env.BRANCH_NAME}}
sonarcloud_token: ${{ secrets.SONAR_TOKEN }}
sonarcloud_host_url: ${{ 'https://sonarcloud.io/' }}
sonarcloud_organization: ${{ github.repository_owner }}
sonarcloud_sources: ${{ 'src/main/java' }}
sonarcloud_projectKey: ${{ github.repository_owner }}_${{ github.event.repository.name }}
sonarcloud_coverage_jacoco_xmlReportPaths: ${{ 'target/site/jacoco/jacoco.xml' }}
sonarcloud_java_binaries: ${{ 'target/classes' }}
sonarcloud_tests: ${{ '' }}