Bump azure/setup-helm from 3.5 to 4 #8
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/[email protected] | |
- name: Install stable toolchain | |
uses: actions-rs/[email protected] | |
with: | |
toolchain: stable | |
default: true | |
- name: Cache Rust Build | |
uses: Swatinem/[email protected] | |
- name: Generate Schema | |
uses: actions-rs/[email protected] | |
with: | |
command: run | |
args: > | |
schema | |
--path robot-operations.graphql | |
- name: Upload Schema Artifact | |
uses: actions/[email protected] | |
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/[email protected] | |
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 }} |