generated from okp4/template-oss
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #38 from axone-protocol/refactor/go-codegen
[Go] ♻️ Replace `quicktype` by `go-codegen`
- Loading branch information
Showing
6 changed files
with
41 additions
and
29 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 |
---|---|---|
|
@@ -51,11 +51,6 @@ jobs: | |
- name: Install Mage | ||
run: go install github.com/magefile/[email protected] | ||
|
||
- name: Installing quicktype | ||
run: | | ||
yarn global add quicktype@23 | ||
echo "$(yarn global bin)" >> $GITHUB_PATH | ||
- name: Build | ||
run: | | ||
mage -v build:${{ matrix.target }} ${{ matrix.schema }} |
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 |
---|---|---|
|
@@ -66,19 +66,20 @@ jobs: | |
- name: Install Mage | ||
run: go install github.com/magefile/[email protected] | ||
|
||
- name: Installing quicktype | ||
run: | | ||
yarn global add quicktype@23 | ||
echo "$(yarn global bin)" >> $GITHUB_PATH | ||
- name: Publish | ||
run: | | ||
mage -v publish:ts ${{ matrix.schema }} $GITHUB_REF | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets[matrix.registry.auth-token-secret] }} | ||
|
||
create_release: | ||
runs-on: ubuntu-22.04 | ||
if: startsWith(github.ref, 'refs/tags/') | ||
needs: | ||
- lint | ||
- build | ||
steps: | ||
- name: Create release | ||
uses: softprops/action-gh-release@v2 | ||
if: startsWith(github.ref, 'refs/tags/') | ||
with: | ||
body: Schema changelog avalaible on [contract repository](https://github.com/axone-protocol/contracts/blob/${{ github.ref_name }}/CHANGELOG.md). |
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 |
---|---|---|
|
@@ -122,11 +122,6 @@ jobs: | |
- name: Install Mage | ||
run: go install github.com/magefile/[email protected] | ||
|
||
- name: Installing quicktype | ||
run: | | ||
yarn global add quicktype@23 | ||
echo "$(yarn global bin)" >> $GITHUB_PATH | ||
- name: Build | ||
run: | | ||
mage -v build:${{ matrix.target }} ${{ matrix.schema }} | ||
|
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 |
---|---|---|
|
@@ -6,4 +6,5 @@ const ( | |
GO_DIR = "go" | ||
|
||
TS_CODEGEN_VERSION = "1.11.1" | ||
GO_CODEGEN_VERSION = "0.2.5" | ||
) |
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