forked from ikmdev/tinkar-core
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (30 loc) · 1.09 KB
/
build.yaml
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
name: Build Workflow
run-name: 'Build Workflow -- ${{ github.head_ref || github.ref_name }}'
on:
push:
pull_request:
workflow_dispatch:
env:
MAVEN_SETTING: '/home/ec2-user/maven/.m2/settings.xml'
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/maven-clean-install-build-action@main
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: ${{ '' }}