Skip to content

Merge pull request #71 from Netflix/sgg/fix-bugs #6

Merge pull request #71 from Netflix/sgg/fix-bugs

Merge pull request #71 from Netflix/sgg/fix-bugs #6

Workflow file for this run

name: Release
on:
push:
tags:
- v[0-9]+.[0-9]+.[0-9]+
- v[0-9]+.[0-9]+.[0-9]+-rc.[0-9]+
jobs:
build:
if: ${{ github.repository == 'Netflix/spectator-go' }}
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [1.17, 1.18, 1.19]
steps:
- uses: actions/checkout@v2
- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Install dependencies
run: |
go version
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.50.1
golangci-lint --version
- name: Run build
run: |
go build .
- name: Run tests
run: |
go test -race -v ./...
golangci-lint run
- name: Run linter
run: |
golangci-lint run