Skip to content

chore: revise sample project #38

chore: revise sample project

chore: revise sample project #38

Workflow file for this run

# This workflow will build a Java project with Gradle
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
name: Java CI with Gradle
on:
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Gradle binary cache
uses: actions/cache@v3
with:
path: ~/.gradle/wrapper/
key: gradle-wrapper-${{ hashFiles('plugin/src/functionalTest/resources/gradleVersions.csv') }}
restore-keys: |
gradle-wrapper-
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 11
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build
run: ./gradlew build --stacktrace
- uses: codecov/codecov-action@v3
with:
file: plugin/build/reports/jacoco/test/jacocoTestReport.xml
flags: unittests
fail_ci_if_error: true
verbose: true