Skip to content

Commit

Permalink
Use the gradle/gradle-build-action GitHub Action
Browse files Browse the repository at this point in the history
  • Loading branch information
mbland committed Nov 3, 2023
1 parent 29d399e commit c108127
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/run-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ jobs:
distribution: temurin
java-version: 21
check-latest: true
cache: gradle

- name: Setup Gradle
uses: gradle/gradle-build-action@v2

- name: Build and test
run: ./gradlew build --no-daemon --warning-mode all
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,8 @@ Expected: a string containing "Hello, World!"

Added the [.github/CODEOWNERS](.github/CODEOWNERS) file and
[.github/workflows/run-tests.yaml](.github/workflows/run-tests.yaml) file
for [GitHub Actions][]. Configured using the [setup-java GitHub Actions plugin][].
for [GitHub Actions][]. Configured using the [setup-java GitHub Actions
plugin][] and the [gradle/gradle-build-action GitHub Actions plugin][].

### Publishing JUnit test results

Expand Down Expand Up @@ -327,6 +328,7 @@ Coming soon...
[Content-Type]: https://developer.mozilla.org/docs/Web/HTTP/Headers/Content-Type
[Hamcrest matcher library]: https://hamcrest.org
[setup-java GitHub Actions plugin]: https://github.com/actions/setup-java
[gradle/gradle-build-action GitHub Actions plugin]: https://github.com/gradle/gradle-build-action
[org.apache.ant:ant-junit]: https://mvnrepository.com/artifact/org.apache.ant/ant-junit
[Merging Per-Suite JUnit Reports into Single File with Gradle + Kotlin]: https://blog.lehnerpat.com/post/2018-09-10/merging-per-suite-junit-reports-into-single-file-with-gradle-kotlin/
[Using Ant from Gradle]: https://docs.gradle.org/current/userguide/ant.html
Expand Down

0 comments on commit c108127

Please sign in to comment.