Update go.yml #16
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
name: Go | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
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@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.23 | |
- name: Go Test | |
working-directory: src | |
run: go mod tidy && go test --short --timeout 5s ./... |