-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (32 loc) · 1.01 KB
/
build.yml
File metadata and controls
34 lines (32 loc) · 1.01 KB
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
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup JDK 17
uses: actions/setup-java@v2
with:
java-version: 17
distribution: 'temurin'
- name: Build with Gradle
uses: gradle/gradle-build-action@v2
with:
arguments: build
build-root-directory: app
- run: make build
- name: Publish code coverage
# uses: paambaati/codeclimate-action@v2.7.1
uses: paambaati/codeclimate-action@v3.2.0
env:
CC_TEST_REPORTER_ID: ${{ secrets.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
# - name: Run Snyk to check for vulnerabilities
# uses: snyk/actions/node@master
# continue-on-error: true
# env:
# SNYK_TOKEN: ${{ secrets.SNYK.TOKEN }}