-
-
Notifications
You must be signed in to change notification settings - Fork 536
47 lines (40 loc) · 1.22 KB
/
federation-compatibility.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
name: 🛰️ Federation compatibility tests
concurrency:
group: ${{ github.head_ref || github.run_id }}-federation
cancel-in-progress: true
on:
push:
branches: [main]
pull_request:
branches: [main]
paths:
- "strawberry/federation/**"
- "strawberry/printer/**"
- "pyproject.toml"
- "poetry.lock"
- ".github/workflows/federation-compatibility.yml"
jobs:
federation-tests:
name: Federation tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: pipx install poetry
- uses: actions/setup-python@v4
id: setup-python
with:
python-version: "3.12"
cache: "poetry"
- run: poetry env use python3.12
- run: poetry install
- name: export schema
run: poetry run strawberry export-schema schema:schema > schema.graphql
working-directory: federation-compatibility
- uses: apollographql/federation-subgraph-compatibility@v2
with:
compose: 'federation-compatibility/docker-compose.yml'
schema: 'federation-compatibility/schema.graphql'
port: 4001
token: ${{ secrets.BOT_TOKEN }}
failOnWarning: false
failOnRequired: true