Skip to content

Commit

Permalink
Create JavaCI.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Azeend committed May 20, 2023
1 parent 51b136f commit 4d0d1a0
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/JavaCI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Java CI

on:
- push
- pull_request

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Build with Gradle
uses: gradle/gradle-build-action@v2
with:
arguments: build
build-root-directory: app
- name: Publish code coverage
uses: paambaati/codeclimate-action@v3.0.0
env:
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}
JACOCO_SOURCE_PATH: app/src/main/java
with:
coverageCommand: make report
coverageLocations: ${{github.workspace}}/app/build/reports/jacoco/test/jacocoTestReport.xml:jacoco

0 comments on commit 4d0d1a0

Please sign in to comment.