-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* perf: add graphql cache * test: fix ut * fix: remove a redundant folder * fix: build error * fix: graphql api url * fix(e2e): tests * fix(e2e): missing env variables
- Loading branch information
Showing
28 changed files
with
10,202 additions
and
187 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Stellate | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- prod | ||
|
||
jobs: | ||
main: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup Node.js 16.x | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 16.x | ||
|
||
- name: Push stellate schema on staging | ||
if: ${{ env.GITHUB_REF_SLUG == 'main' }} | ||
run: cd ./apps/main && npx stellate push schema --env staging | ||
env: | ||
STELLATE_TOKEN: ${{ secrets.STELLATE_TOKEN }} | ||
|
||
- name: Push stellate schema on prod | ||
if: ${{ env.GITHUB_REF_SLUG == 'prod' }} | ||
run: npx stellate push schema | ||
env: | ||
STELLATE_TOKEN: ${{ secrets.STELLATE_TOKEN }} |
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
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
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
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
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
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
2 changes: 1 addition & 1 deletion
2
...cripts/graphql-codegen/client-codegen.yml → apps/main/scripts/graphql/client-codegen.yml
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/usr/bin/env zx | ||
import { $, path } from 'zx'; | ||
|
||
const serverCodeGen = path.resolve(__dirname, 'server-codegen.yml'); | ||
const clientCodeGen = path.resolve(__dirname, 'client-codegen.yml'); | ||
const extraFlags = process.env.GQL_WATCH ? '--watch' : ''; | ||
|
||
await $`graphql-codegen --config ${serverCodeGen} ${extraFlags}`; | ||
await $`graphql-codegen --config ${clientCodeGen} ${extraFlags}`; | ||
|
||
const schemaPath = path.resolve(__dirname, 'schema.graphql'); | ||
// Generate schema for stellate | ||
await $`gq http://127.0.0.1:8080/v1/graphql -H "X-Hasura-Admin-Secret: myadminsecretkey" --introspect > "${schemaPath}"`; |
File renamed without changes.
Oops, something went wrong.