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

Update go.yml #4

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
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
30 changes: 28 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,41 @@ on:
branches: [ "main" ]

jobs:
build_proto:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: bufbuild/buf-action@v1

- name: Generate protos
run: buf lint || true && buf generate

- name: Upload generated protos
uses: actions/upload-artifact@v4
with:
name: generated-protos-backend
path: src/proto/generated
retention-days: 1

- name: Upload generated protos
uses: actions/upload-artifact@v4
with:
name: generated-protos-frontend
path: src/ui/client/src/proto
retention-days: 1

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Download all workflow run artifacts
uses: actions/download-artifact@v4

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.21
go-version: 1.23

- name: Go Test
working-directory: src
Expand Down
6 changes: 5 additions & 1 deletion buf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,8 @@ deps:
- buf.build/k8s/api
lint:
use:
- DEFAULT
- STANDARD
breaking:
ignore:
- src/proto
- src/nagatha/proto
Loading