forked from woowacourse/java-pairmatching-precourse
-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (34 loc) · 1023 Bytes
/
gradle.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
38
39
40
41
42
name: Java CI with Gradle
on:
push:
branches: [ "automation" ]
pull_request:
branches: [ "main" ]
permissions: write-all
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew clean build
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@v1
id: test-results
if: ${{ always() }}
with:
files: build/test-results/**/*.xml
- name: Codecov
# You may pin to the exact commit or the version.
# uses: codecov/codecov-action@d9f34f8cd5cb3b3eb79b3e4b5dae3a16df499a70
uses: codecov/[email protected]
with:
# Comma-separated list of files to upload
files: ./build/reports/jacoco/test/jacocoTestReport.xml