-
Notifications
You must be signed in to change notification settings - Fork 660
44 lines (36 loc) · 1.28 KB
/
defer-with-router-tests.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
name: defer-router-tests
on:
schedule:
- cron: '0 3 * * *'
env:
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
jobs:
defer-with-router-tests:
runs-on: macos-11
if: github.repository == 'apollographql/apollo-kotlin'
steps:
- name: Checkout project
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c #v3.3.0
- name: Install and run subgraph
working-directory: tests/defer/router/subgraphs/computers
run: |
npm install
APOLLO_PORT=4001 npm start &
- name: Install router
run: |
curl -sSL https://router.apollo.dev/download/nix/latest | sh
- name: Run router
run: |
./router --supergraph tests/defer/router/simple-supergraph.graphqls &
- name: Setup Java
uses: actions/setup-java@1df8dbefe2a8cbc99770194893dd902763bee34b #v3.9.0
with:
distribution: 'temurin'
java-version: 17
- name: Setup Gradle
uses: gradle/gradle-build-action@3fbe033aaae657f011f88f29be9e65ed26bd29ef #v2.3.3
- name: Run Apollo Kotlin @defer tests
env:
COM_APOLLOGRAPHQL_DEFER_WITH_ROUTER_TESTS: true
run: |
./gradlew --no-daemon --console plain -p tests :defer:allTests