Skip to content

Update Makefile

Update Makefile #54

Workflow file for this run

name: Java CI
on:
- push
- pull_request
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
java-version: '20'
distribution: 'temurin'
- name: Build with Gradle
uses: gradle/gradle-build-action@v2
with:
gradle-version: 8.3
arguments: build
build-root-directory: app
- name: Publish code coverage
uses: paambaati/codeclimate-action@v5.0.0
env:
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}
JACOCO_SOURCE_PATH: app/src/main/java
with:
coverageCommand: make -C app report
coverageLocations: ${{github.workspace}}/app/build/reports/jacoco/test/jacocoTestReport.xml:jacoco
# deploy:
# needs: build
# runs-on: ubuntu-latest
# if: ${{ github.event_name == 'push' }}
# steps:
# - uses: actions/checkout@v3
# - uses: docker/setup-buildx-action@v2
# - uses: docker/login-action@v2
# with:
# username: ${{ secrets.DOCKER_USERNAME }}
# password: ${{ secrets.DOCKER_PASSWORD }}
# - uses: docker/build-push-action@v4
# with:
# context: .
# push: true
# cache-from: hexletcomponents/java-javalin-example:latest
# cache-to: type=inline
# tags: hexletcomponents/java-javalin-example:latest