Skip to content

Merge remote-tracking branch 'origin/master' #80

Merge remote-tracking branch 'origin/master'

Merge remote-tracking branch 'origin/master' #80

Workflow file for this run

name: tests
on:
- push
- pull_request
jobs:
code:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: 'go.mod'
- name: Install deps
run: |
sudo apt-get install -y \
libc6-dev \
libgl1-mesa-dev \
libxcursor-dev \
libxi-dev \
libxinerama-dev \
libxrandr-dev \
libxxf86vm-dev \
libasound2-dev \
pkg-config
- name: Cache Go modules
uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Go build
run: go build -v ./...
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: latest
args: --config .golangci.yml
- name: Run tests
run: make test
proto:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: bufbuild/buf-setup-action@v1
- uses: bufbuild/buf-lint-action@v1
with:
input: proto
config: proto/buf.yaml