Skip to content

chore(ci): Adding github actions pipeline #2

chore(ci): Adding github actions pipeline

chore(ci): Adding github actions pipeline #2

Workflow file for this run

name: Test
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
name: Test
strategy:
matrix:
os: [ubuntu-latest,macos-latest,windows-latest]
go: ['oldstable', 'stable']
runs-on: ${{ matrix.os }}
steps:
- name: Set up Golang
uses: actions/setup-go@v5
with:
go-version: '${{ matrix.go }}'
- name: Checkout code
uses: actions/checkout@v2
- name: Test
run: |
test -z "`gofmt -l -d .`"
test -z "`go run golang.org/x/lint/golint@latest ./...`"
go test -v --race -covermode=count -coverprofile=coverage.out