This repository has been archived by the owner on Jan 3, 2024. It is now read-only.
Update gradle/gradle-build-action digest to 0bfe00a #421
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
# This workflow uses actions that are not certified by GitHub. | |
# They are provided by a third-party and are governed by | |
# separate terms of service, privacy policy, and support | |
# documentation. | |
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time | |
# 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: | |
push: | |
branches: [ master,develop ] | |
pull_request: | |
branches: [ master,develop ] | |
permissions: write-all | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Build with Gradle | |
uses: gradle/gradle-build-action@0bfe00a136db5e61ba3416b372542a65863a9fee | |
with: | |
arguments: build | |
- name: Check Javadoc | |
# warning: [deprecation] 以外で発生しているwarningとerrorを取得し、ヒットした場合は終了コード1で終了 | |
run: "! ./gradlew javadoc 2>&1 | grep -v 'warning: \\[deprecation\\]' | grep -A 2 -e warning: -e error: ; exit $?" | |
# - name: push Javadoc | |
# if: github.ref == 'refs/heads/develop' | |
# uses: actions-js/push@master | |
# with: | |
# github_token: ${{ secrets.GITHUB_TOKEN }} | |
# message: "Javadoc加筆" | |
# branch: develop |