2022-05-09 09:15:45 +00:00
|
|
|
name: Generate queries
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2022-10-13 15:59:05 +00:00
|
|
|
- develop
|
2022-05-09 09:15:45 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
master:
|
|
|
|
name: Generate Queries
|
2023-04-03 13:53:50 +00:00
|
|
|
runs-on: ubuntu-22.04
|
2022-05-09 09:15:45 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2023-04-03 13:53:50 +00:00
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Setup node
|
|
|
|
uses: actions/setup-node@v3
|
2022-05-09 09:15:45 +00:00
|
|
|
with:
|
2023-04-03 13:53:50 +00:00
|
|
|
node-version-file: '.nvmrc'
|
|
|
|
# https://stackoverflow.com/questions/61010294/how-to-cache-yarn-packages-in-github-actions
|
|
|
|
cache: yarn
|
|
|
|
|
2022-05-09 09:15:45 +00:00
|
|
|
- name: Install root dependencies
|
2023-04-03 13:53:50 +00:00
|
|
|
run: yarn install --frozen-lockfile
|
|
|
|
|
2022-05-09 09:15:45 +00:00
|
|
|
- name: Generate queries
|
|
|
|
run: node ./scripts/get-queries.js
|
2023-04-03 13:53:50 +00:00
|
|
|
|
2022-05-09 09:15:45 +00:00
|
|
|
- uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: queries
|
|
|
|
path: ./queries.graphql
|