-
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.
- Loading branch information
Showing
3 changed files
with
36 additions
and
304 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,36 @@ | ||
name: Generate SDK and Docs | ||
on: | ||
pull_request: | ||
jobs: | ||
generate-sdk: | ||
name: Check if SDK is up to date | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version: 1.19.5 | ||
- uses: actions/checkout@v3 | ||
- name: Check SDK | ||
run: | | ||
make generate-sdk | ||
if [[ -n $(git status -s) ]] | ||
then | ||
echo "SDK is not up to date, regenerate it by running 'make generate-sdk' and commit your changes." | ||
exit 1 | ||
fi | ||
generate-docs: | ||
name: Check if documentation is up to date | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version: 1.19.5 | ||
- uses: actions/checkout@v3 | ||
- name: Check SDK | ||
run: | | ||
make generate-docs | ||
if [[ -n $(git status -s) ]] | ||
then | ||
echo "Documentation is not up to date, regenerate it by running 'make generate-docs' and commit your changes." | ||
exit 1 | ||
fi |
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.