Merge pull request #131 from treasure-data/dependabot/github_actions/… #21
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and test | |
on: push | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 1.8 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: 8 | |
distribution: "zulu" | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Build with testing | |
run: ./gradlew clean check jacocoTestReport --console verbose | |
- uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: tests | |
path: ./build/reports/tests/test | |
- uses: actions/upload-artifact@v4 | |
if: success() | |
with: | |
name: jacoco | |
path: ./build/reports/jacoco/test |