Skip to content

feat: add ci-tests #548

feat: add ci-tests

feat: add ci-tests #548

Workflow file for this run

name: lint
on: push
env:
GO_VERSION: "1.20.8"
jobs:
buf:
runs-on: ubuntu-latest
steps:
# Checkout the repository
- name: Checkout the repository
uses: actions/checkout@v4
# Install `buf`
- name: Install `buf`
uses: bufbuild/buf-setup-action@v1
with:
github_token: ${{ github.token }}
# Lint Protobuf files
- name: Lint Protobuf files
uses: bufbuild/buf-lint-action@v1
with:
buf_token: ${{ secrets.BUF_TOKEN }}
golangci:
name: lint
runs-on: ubuntu-latest
steps:
# Checkout the repository
- name: Checkout the repository
uses: actions/checkout@v4
# Setup Golang
- name: 🐿 Setup Golang
uses: actions/setup-go@v4
with:
go-version: ${{env.GO_VERSION}}
# Lint go files with golangci-lint
- name: Lint go files with golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: latest
args: --timeout=10m