Skip to content

Create lint-test.yaml #1

Create lint-test.yaml

Create lint-test.yaml #1

Workflow file for this run

name: Go Test and Lint
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test-and-lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: '^1.21'
- name: Install dependencies
run: go mod download
- name: Run linters
run: |
go install golang.org/x/lint/golint@latest
golint ./...
- name: Run tests
run: go test -v ./...