Skip to content

[pre-commit.ci] pre-commit autoupdate #1258

[pre-commit.ci] pre-commit autoupdate

[pre-commit.ci] pre-commit autoupdate #1258

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.10"
cache: "poetry"
- run: poetry env use python3.10
- 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@v1
with:
compose: 'federation-compatibility/docker-compose.yml'
schema: 'federation-compatibility/schema.graphql'
port: 4001
token: ${{ secrets.BOT_TOKEN }}
failOnWarning: true
failOnRequired: true