Bump the minor group with 1 update #17
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 datasets.graphql | |
- name: Upload Schema Artifact | |
uses: actions/upload-artifact@v4.3.1 | |
with: | |
name: datasets.graphql | |
path: datasets.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: datasets.graphql | |
- name: Check Subgraph Schema | |
run: > | |
rover subgraph check data-gateway-n63jcf@current | |
--schema datasets.graphql | |
--name datasets | |
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://datasets:80 | |
--schema datasets.graphql | |
--name datasets | |
env: | |
APOLLO_KEY: ${{ secrets.APOLLO_STUDIO }} |