-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add source filter for queries. (#11)
* Add source filter for queries. * Add codegen check * code comments * clean up arg population * Remove tokenID from response
- Loading branch information
1 parent
da68fb4
commit ae75cb5
Showing
16 changed files
with
2,593 additions
and
1,155 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: generate files | ||
on: | ||
pull_request: | ||
branches: [ '**' ] | ||
env: | ||
GOPRIVATE: github.com/DIMO-Network | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
jobs: | ||
golangci: | ||
runs-on: ubuntu-latest | ||
|
||
name: lint | ||
steps: | ||
- name: Install Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.22 | ||
|
||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: go mod tidy | ||
run: go mod tidy | ||
|
||
- name: go mod verify | ||
run: go mod verify | ||
|
||
- name: install tools | ||
run: make tools | ||
|
||
- name: generate graphql files | ||
run: make gql | ||
|
||
- name: porcelain | ||
shell: bash | ||
run: | | ||
dirty_files="$(git status --porcelain)" | ||
if [[ `git status --porcelain` ]]; then | ||
echo "The following files are dirty after running generators:" | ||
echo "${dirty_files}" | ||
exit 1 | ||
fi |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.