forked from kobylynskyi/graphql-java-codegen
-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (50 loc) · 1.63 KB
/
github.yml
File metadata and controls
63 lines (50 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Build
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
jdk-version: [ 21 ]
steps:
- uses: actions/checkout@v4
- name: Setup Java ${{ matrix.jdk-version }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.jdk-version }}
distribution: 'adopt'
- name: Gradle cache
uses: actions/cache@v4
with:
path: ~/.gradle
key: gradle
- name: Maven cache
uses: actions/cache@v4
with:
path: ~/.m2
key: m2
- name: Build library
run: ./gradlew build publishToMavenLocal --warning-mode all
- name: Build maven plugin
working-directory: plugins/maven/graphql-java-codegen-maven-plugin
run: mvn install
- name: Build maven example-server
working-directory: plugins/maven/example-server
run: mvn package
- name: Build maven example-client
working-directory: plugins/maven/example-client
run: mvn package
- name: Build gradle plugin
run: ./gradlew -p plugins/gradle/graphql-java-codegen-gradle-plugin build publishToMavenLocal --warning-mode all
- name: Build gradle example-server
run: ./gradlew -p plugins/gradle/example-server test --warning-mode all
- name: Build gradle example-client
run: ./gradlew -p plugins/gradle/example-client test --warning-mode all
- name: Build gradle example-client-kotlin
run: ./gradlew -p plugins/gradle/example-client-kotlin build --warning-mode all