Update Node.js to v16.20.2 #664
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@v3 | |
- name: Set up Node in ats | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 1.19 | |
- name: add path | |
run: |- | |
echo "$RUNNER_TEMP/protoc/bin" >> $GITHUB_PATH | |
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH | |
- name: prepare protoc | |
run: |- | |
curl -L https://github.com/protocolbuffers/protobuf/releases/download/v3.20.3/protoc-3.20.3-linux-x86_64.zip -o $RUNNER_TEMP/protoc.zip | |
unzip -d $RUNNER_TEMP/protoc $RUNNER_TEMP/protoc.zip | |
go install google.golang.org/protobuf/cmd/[email protected] | |
go install google.golang.org/grpc/cmd/[email protected] | |
mkdir -p $GITHUB_WORKSPACE/backend/internal/spec | |
mkdir -p $GITHUB_WORKSPACE/backend/external/spec | |
mkdir -p $GITHUB_WORKSPACE/backend/ats/spec | |
mkdir -p $GITHUB_WORKSPACE/backend/json2grpc/spec | |
mkdir -p $GITHUB_WORKSPACE/backend/auto_operation/spec | |
- name: prepare node protoc | |
run: |- | |
yarn install --frozen-lockfile | |
working-directory: backend/ats | |
- name: prepare python protoc | |
run: |- | |
pip3 install grpcio-tools | |
working-directory: backend/auto_operation | |
- name: gen proto | |
run: |- | |
make pb | |
working-directory: backend/ | |
- name: Add & Commit | |
uses: EndBug/[email protected] | |
with: | |
default_author: github_actions |