Skip to content
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
22 changes: 11 additions & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,6 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup buf
uses: bufbuild/buf-setup-action@v1
- name: Lint schema files
uses: bufbuild/buf-lint-action@v1
with:
input: 'schema'
- name: Check for breaking changes
uses: bufbuild/buf-breaking-action@v1
with:
input: 'schema'
against: 'https://github.com/gaming-platform/api.git#branch=main,subdir=schema'
- name: Ensure no uncommitted changes
run: |
./project protoc
Expand All @@ -33,3 +22,14 @@ jobs:
echo "$DIFF"
exit 1
fi
- name: Setup buf
uses: bufbuild/buf-setup-action@v1
- name: Lint schema files
uses: bufbuild/buf-lint-action@v1
with:
input: 'schema'
- name: Check for breaking changes
uses: bufbuild/buf-breaking-action@v1
with:
input: 'schema'
against: 'https://github.com/gaming-platform/api.git#branch=main,subdir=schema'
10 changes: 9 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,23 @@ FROM ubuntu:22.04

WORKDIR /project

ENV PATH="/usr/local/go/bin:${PATH}" \
GOPATH="/usr/local/go"

RUN apt-get update && \
apt-get upgrade --yes && \
apt-get install --yes curl unzip && \
curl -LO https://github.com/protocolbuffers/protobuf/releases/download/v25.1/protoc-25.1-linux-x86_64.zip && \
unzip protoc-25.1-linux-x86_64.zip -d /usr/local bin/protoc && \
unzip protoc-25.1-linux-x86_64.zip -d /usr/local include/* && \
rm protoc-25.1-linux-x86_64.zip
rm protoc-25.1-linux-x86_64.zip && \
curl -LO https://go.dev/dl/go1.25.4.linux-amd64.tar.gz && \
tar -C /usr/local -xzf go1.25.4.linux-amd64.tar.gz && \
rm -rf go1.25.4.linux-amd64.tar.gz && \
go install google.golang.org/protobuf/cmd/[email protected]

CMD protoc \
--proto_path=schema/ \
--php_out=php/ \
--go_out=go/ \
$(find schema -name '*.proto')
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ package with the following command.
composer require gaming-platform/api
```

### Go

Install the package with the following command.

```bash
go get github.com/gaming-platform/api
```

## Contributing

You can find the schema definitions in the [/schema](/schema) directory.
Expand Down
5 changes: 5 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module github.com/gaming-platform/api

go 1.25.4

require google.golang.org/protobuf v1.36.10
282 changes: 282 additions & 0 deletions go/chat/v1/messaging.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading