Skip to content

Update actions/setup-go action to v5 #238

Update actions/setup-go action to v5

Update actions/setup-go action to v5 #238

Workflow file for this run

name: compile_buf
on:
push:
paths:
- .github/workflows/*.yaml
- .github/workflows/*.yml
- proto/**
- buf.*.yaml
branches-ignore:
- main
- deployment
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
- uses: bufbuild/buf-setup-action@v1
- uses: bufbuild/buf-lint-action@v1
- uses: actions/setup-go@v5
with:
go-version-file: "go/go.mod"
- run: |
go install google.golang.org/protobuf/cmd/[email protected]
go install github.com/bufbuild/connect-go/cmd/[email protected]
go install github.com/pseudomuto/protoc-gen-doc/cmd/[email protected]
go install github.com/envoyproxy/[email protected]
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
working-directory: ./client
- uses: actions/cache@v3
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- run: yarn install --immutable
working-directory: ./client
- run: buf format -w
- run: make buf
- name: Add & Commit
uses: EndBug/[email protected]
with:
default_author: github_actions
- uses: golangci/golangci-lint-action@v3
with:
version: v1.49.0
skip-cache: true
working-directory: go
- run: go test -v ./...
working-directory: go
- run: yarn run check
working-directory: client
- run: yarn run lint
working-directory: client