mirror of
https://github.com/sourcegraph/jsonrpc2.git
synced 2026-06-16 20:20:03 +02:00
34 lines
703 B
YAML
34 lines
703 B
YAML
name: CI
|
|
on:
|
|
pull_request: {}
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
test:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
go:
|
|
- 1.16
|
|
name: Go ${{ matrix.go }}
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v6
|
|
with:
|
|
go-version: ${{ matrix.go }}
|
|
id: go
|
|
- name: Get dependencies
|
|
run: go get -t -v ./...
|
|
- name: Install staticcheck
|
|
run: go install honnef.co/go/tools/cmd/staticcheck@v0.2.2
|
|
- name: Lint
|
|
run: staticcheck -checks=all ./...
|
|
- name: Test
|
|
run: go test -v -race ./...
|