Skip to content

💚 ⬆️ Updating Go Versions #33

💚 ⬆️ Updating Go Versions

💚 ⬆️ Updating Go Versions #33

Workflow file for this run

on: [push, pull_request]
name: CI
jobs:
ci:
strategy:
fail-fast: false
matrix:
go-version: ['stable', 'oldstable']
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
cache: true
- name: Verify dependencies
run: go mod verify
- name: Build
run: go build -v ./...
- name: Run go vet
run: go vet ./...
- name: Install staticcheck
run: go install honnef.co/go/tools/cmd/staticcheck@latest
- name: Run staticcheck
run: staticcheck ./...
- name: Install golint
run: go install golang.org/x/lint/golint@latest
- name: Run golint
run: golint -set_exit_status ./...
- name: Run tests
run: go test -race -vet=off ./...