Skip to content

Commit

Permalink
added proto generation to ci
Browse files Browse the repository at this point in the history
  • Loading branch information
ag060 committed Dec 10, 2024
1 parent 2734315 commit 59a61a5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,12 @@ jobs:
architecture: x64
- uses: actions/setup-node@v2
with:
node-version: "17"
node-version: '17'
- uses: bufbuild/buf-action@v1
with:
setup_only: true
- name: Generate Proto files
run: make proto-gen
- name: Convert github branch name to be compatible with docker tag name convention and generate tag name
id: docker_tag
run: echo "IMAGE_TAG=a-$(echo ${{ github.ref_name }} | sed 's/[^a-zA-Z0-9]/-/g')" >> $GITHUB_OUTPUT
Expand Down
7 changes: 1 addition & 6 deletions scripts/proto-gen.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
#!/bin/bash

# Check if buf is installed or not
if ! command -v buf &> /dev/null
then
echo "buf is not installed. Please install buf by following the instructions at https://docs.buf.build/installation"
exit
fi

# Please install buf if not already installed by following the instructions at https://docs.buf.build/installation
buf lint protobuf
rm -rf ./libs/protobuf/src
buf generate protobuf

0 comments on commit 59a61a5

Please sign in to comment.