-
Notifications
You must be signed in to change notification settings - Fork 100
71 lines (57 loc) · 2.02 KB
/
ci.yml
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
64
65
66
67
68
69
70
71
name: CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 17
- name: Set up Python 3.8
uses: actions/[email protected]
with:
python-version: 3.8
- name: Install Python modules
run: |
python -m pip install --upgrade pip
if [ -f scripts/requirements.txt ]; then pip install -r scripts/requirements.txt; fi
- uses: actions/[email protected]
id: gradle-wrapper-cache
with:
path: ~/.gradle/wrapper
key: ${{ runner.os }}-gradlewrapper-${{ hashFiles('gradle/wrapper/*') }}
restore-keys: ${{ runner.os }}-gradlewrapper-
- name: Cache Gradle packages
uses: actions/[email protected]
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
- name: Maven cache
uses: actions/[email protected]
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build plugin and publish Locally
run: |
./gradlew --info check publishToMavenLocal --warning-mode all
- name: Clone dgs-examples-java
uses: actions/checkout@v4
with:
repository: Netflix/dgs-examples-java
path: build/examples/dgs-examples-java
- name: Clone dgs-examples-kotlin
uses: actions/checkout@v4
with:
repository: Netflix/dgs-examples-kotlin
path: build/examples/dgs-examples-kotlin
- name: Build Examples
run: |
find /home/runner/.m2/repository/ -type f -name "*graphql-dgs-codegen-gradle*"
./scripts/test-examples.py -v -k --path=./build/examples