Skip to content

Commit b055635

Browse files
Add Gradle Wrapper Validator to build job, fix build job (#293)
* ci: add Gradle Wrapper Validator to build job see https://github.com/gradle/wrapper-validation-action * ci: upgrade actions to latest version * ci: require validation to complete before building * docs: add correct build state badge * ci: update checkout and setup-java to v3 in publish job
1 parent 807b7e2 commit b055635

File tree

3 files changed

+14
-6
lines changed

3 files changed

+14
-6
lines changed

.github/workflows/build.yml

+11-3
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,20 @@ name: Build
66
on: [push, pull_request]
77

88
jobs:
9+
validation:
10+
name: "Gradle Validation"
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
- uses: gradle/wrapper-validation-action@v1
915
build:
16+
needs:
17+
- validation
1018
runs-on: ubuntu-latest
1119
steps:
12-
- uses: actions/checkout@v2
20+
- uses: actions/checkout@v3
1321
- name: Set up JDK 11
14-
uses: actions/setup-java@v2
22+
uses: actions/setup-java@v3
1523
with:
1624
java-version: '11'
1725
distribution: 'zulu'
@@ -20,7 +28,7 @@ jobs:
2028
- name: Build with Gradle
2129
run: ./gradlew build
2230
- name: Publish Test Report
23-
uses: mikepenz/action-junit-report@v2
31+
uses: mikepenz/action-junit-report@v3
2432
if: always() # always run even if the previous step fails
2533
with:
2634
report_paths: '**/build/test-results/test/TEST-*.xml'

.github/workflows/publish.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ jobs:
1212
runs-on: ubuntu-latest
1313
environment: prod
1414
steps:
15-
- uses: actions/checkout@v2
15+
- uses: actions/checkout@v3
1616
- name: Set up JDK 11
17-
uses: actions/setup-java@v2
17+
uses: actions/setup-java@v3
1818
with:
1919
java-version: '11'
2020
distribution: 'zulu'

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
![logo](graphql-annotations.png?raw=true)
22
# GraphQL-Java Annotations
3-
[![Build Status](https://travis-ci.org/graphql-java/graphql-java-annotations.svg?branch=master)](https://travis-ci.org/graphql-java/graphql-java-annotations)
3+
![build](https://github.com/Enigmatis/graphql-java-annotations/actions/workflows/build.yml/badge.svg)
44
[![Maven Central](https://img.shields.io/maven-central/v/io.github.graphql-java/graphql-java-annotations.svg?maxAge=3000)]()
55

66
[GraphQL-Java](https://github.com/graphql-java/graphql-java) is a great library, but its syntax is a little bit verbose. This library offers an annotations-based

0 commit comments

Comments
 (0)