fix test #54
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: compile_PB | |
on: | |
push: | |
branches-ignore: | |
- "main" | |
- "deployment" | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
# - name: Set up Node in ats | |
# uses: actions/setup-node@v4 | |
# with: | |
# node-version: 20 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 1.21 | |
- name: add path | |
run: |- | |
echo "$RUNNER_TEMP/protoc/bin" >> $GITHUB_PATH | |
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH | |
- name: bufbuild/install | |
uses: bufbuild/[email protected] | |
with: | |
version: v1.27.2 | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
- name: setup protoc | |
uses: arduino/setup-protoc@v2 | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: prepare protoc | |
run: |- | |
go install google.golang.org/protobuf/cmd/[email protected] | |
go install connectrpc.com/connect/cmd/protoc-gen-connect-go@latest | |
mkdir -p $GITHUB_WORKSPACE/backend/spec | |
- name: gen proto | |
run: |- | |
buf generate | |
working-directory: proto | |
- name: Add & Commit | |
uses: EndBug/[email protected] | |
with: | |
default_author: github_actions | |
# FIXME: PATかgithub appsのtokenを使う |