Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🦫 Add Go target #27

Merged
merged 11 commits into from
Jun 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .coderabbit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
reviews:
path_filters:
- "!go/**/*.go"
- "!go/**/*.md"
- "!ts/**/*.md"
5 changes: 3 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,12 @@ jobs:
- id: set-matrix
run: echo "::set-output name=schema::$(ls schema/ | jq -R -s -c 'split("\n")[:-1]' )"

build-ts:
build-target:
runs-on: ubuntu-22.04
needs: schema-matrix
strategy:
matrix:
target: [ts, go]
schema: ${{ fromJson(needs.schema-matrix.outputs.schema) }}
steps:
- name: Check out repository
Expand Down Expand Up @@ -57,4 +58,4 @@ jobs:

- name: Build
run: |
mage -v build:ts ${{ matrix.schema }}
mage -v build:${{ matrix.target }} ${{ matrix.schema }}
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
uses: avto-dev/[email protected]
with:
args: "**/*.md"
ignore: "ts/**/README.md"
ignore: "ts/**/README.md go/**/README.md"

lint-yaml:
runs-on: ubuntu-22.04
Expand Down
23 changes: 23 additions & 0 deletions go/README.md.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# AXONE {{ .Name }} schema

> Generated go types for [{{ .ContractName }} contract](https://github.com/axone-protocol/contracts/tree/{{ .Ref }}/contracts/{{ .ContractName }}).

[![version](https://img.shields.io/github/v/release/axone-protocol/axone-contract-schema?style=for-the-badge&logo=github)](https://github.com/axone-protocol/axone-contract-schema/releases)
[![build](https://img.shields.io/github/actions/workflow/status/axone-protocol/axone-contract-schema/build.yml?branch=main&label=build&style=for-the-badge&logo=github)](https://github.com/axone-protocol/axone-contract-schema/actions/workflows/build.yml)
[![lint](https://img.shields.io/github/actions/workflow/status/axone-protocol/axone-contract-schema/lint.yml?branch=main&label=lint&style=for-the-badge&logo=github)](https://github.com/axone-protocol/axone-contract-schema/actions/workflows/lint.yml)
[![test](https://img.shields.io/github/actions/workflow/status/axone-protocol/axone-contract-schema/test.yml?branch=main&label=test&style=for-the-badge&logo=github)](https://github.com/axone-protocol/axone-contract-schema/actions/workflows/test.yml)
[![conventional commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg?style=for-the-badge&logo=conventionalcommits)](https://conventionalcommits.org)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge)](https://github.com/semantic-release/semantic-release)
[![contributor covenant](https://img.shields.io/badge/Contributor%20Covenant-2.1-4baaaa.svg?style=for-the-badge)](https://github.com/axone-protocol/.github/blob/main/CODE_OF_CONDUCT.md)
[![License](https://img.shields.io/badge/License-BSD_3--Clause-blue.svg?style=for-the-badge)](https://opensource.org/licenses/BSD-3-Clause)

## Installation

```bash
go get github.com/axone-protocol/axone-contract-schema/go/{{ .SchemaName }}
```

---

{{ .Docs }}

902 changes: 902 additions & 0 deletions go/cognitarium-schema/README.md

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions go/cognitarium-schema/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module github.com/axone-protocol/axone-contract-schema/go/cognitarium-schema/v5

go 1.22
Loading
Loading