-
-
Notifications
You must be signed in to change notification settings - Fork 249
44 lines (41 loc) · 1.27 KB
/
compatibility.yaml
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: Federation Specification Compatibility Test
on:
pull_request:
branches:
- series/2.x
paths:
- apollo-compatibility/**
- federation/**
- adapters/quick/**
jobs:
compatibility:
runs-on: ubuntu-latest
steps:
- name: Checkout current branch
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Java
uses: actions/setup-java@v3
with:
java-version: 17
distribution: 'adopt'
cache: 'sbt'
- name: Cache scala dependencies
uses: coursier/cache-action@v6
- name: Run assembly
run: sbt "apolloCompatibility/assembly"
- name: Compatibility Test
uses: apollographql/federation-subgraph-compatibility@v2
with:
compose: 'apollo-compatibility/docker-compose.yaml'
schema: 'apollo-compatibility/products.graphql'
path: '/graphql'
port: 4001
debug: true
# Boolean flag to indicate whether any failing test should fail the script
failOnWarning: false
# Boolean flag to indicate whether any required test should fail the script
failOnRequired: false
# Working directory to run the test from
workingDirectory: ''