Skip to content

Bump the patch group across 1 directory with 9 updates #51

Bump the patch group across 1 directory with 9 updates

Bump the patch group across 1 directory with 9 updates #51

Workflow file for this run

name: Schema
on:
push:
pull_request:
jobs:
generate:
# Deduplicate jobs from pull requests and branch pushes within the same repo.
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
runs-on: ubuntu-latest
services:
ispyb:
image: ghcr.io/diamondlightsource/ispyb-database:v3.0.0
ports:
- 3306:3306
env:
MARIADB_ROOT_PASSWORD: rootpassword
options: >
--health-cmd "/usr/local/bin/healthcheck.sh --defaults-file=/ispyb/.my.cnf --connect"
env:
DATABASE_URL: mysql://root:rootpassword@localhost:3306/ispyb_build
steps:
- name: Checkout source
uses: actions/checkout@v4.1.2
- name: Install stable toolchain
uses: actions-rs/toolchain@v1.0.7
with:
toolchain: stable
default: true
- name: Cache Rust Build
uses: Swatinem/rust-cache@v2.7.3
- name: Generate Schema
uses: actions-rs/cargo@v1.0.3
with:
command: run
args: >
schema
--path robot-operations.graphql
- name: Upload Schema Artifact
uses: actions/upload-artifact@v4.3.1
with:
name: robot-operations.graphql
path: robot-operations.graphql
publish:
# Deduplicate jobs from pull requests and branch pushes within the same repo.
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
needs:
- generate
runs-on: ubuntu-latest
steps:
- name: Install Rover CLI
run: |
curl -sSL https://rover.apollo.dev/nix/v0.23.0-rc.3 | sh
echo "$HOME/.rover/bin" >> $GITHUB_PATH
- name: Download Schema Artifact
uses: actions/download-artifact@v4.1.4
with:
name: robot-operations.graphql
- name: Check Subgraph Schema
run: >
rover subgraph check data-gateway-n63jcf@current
--schema robot-operations.graphql
--name robot-operations
env:
APOLLO_KEY: ${{ secrets.APOLLO_STUDIO }}
- name: Publish Subgraph Schema to Apollo Studio
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags') }}
run: >
rover subgraph publish data-gateway-n63jcf@current
--routing-url http://robot-operations:80
--schema robot-operations.graphql
--name robot-operations
env:
APOLLO_KEY: ${{ secrets.APOLLO_STUDIO }}