Skip to content

[pre-commit.ci] pre-commit autoupdate #210

[pre-commit.ci] pre-commit autoupdate

[pre-commit.ci] pre-commit autoupdate #210

Workflow file for this run

on: [pull_request, push]
name: Test
jobs:
test:
strategy:
matrix:
go-version: [1.17.x, 1.18.x, 1.19.x]
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
- name: Install Dependences
run: go mod download
- name: Go Test
run: go test ./...
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
test-race:
strategy:
matrix:
go-version: [1.17.x, 1.18.x, 1.19.x]
platform: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
- name: Install Dependences
run: go mod download
- name: Go Test Race
run: go test ./... -race