Skip to content

go test

go test #90

Workflow file for this run

name: Go
on:
- push
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: set up go 1.21
uses: actions/setup-go@v2
with:
go-version: 1.21
id: go
- name: checkout
uses: actions/checkout@v2
- name: install golangci-lint and goveralls
run: |
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b $GITHUB_WORKSPACE v1.54.0
- name: run linters
run: $GITHUB_WORKSPACE/golangci-lint run --config .golangci.yml ./...
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.22
- name: generate test coverage
run: go test -cover ./...