diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 06c7f45..d071672 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -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 diff --git a/buf.yaml b/buf.yaml index f0a19ec..7b23479 100644 --- a/buf.yaml +++ b/buf.yaml @@ -7,4 +7,8 @@ deps: - buf.build/k8s/api lint: use: - - DEFAULT \ No newline at end of file + - STANDARD +breaking: + ignore: + - src/proto + - src/nagatha/proto