Skip to content

Commit

Permalink
Update go.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ldsnia authored Dec 11, 2024
1 parent 40584d1 commit aa762dc
Showing 1 changed file with 28 additions and 2 deletions.
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/[email protected]

- name: Generate protos
run: 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

0 comments on commit aa762dc

Please sign in to comment.