Skip to content

Fix github CI and cleanup ISSUE_TEMPLATES #281

Fix github CI and cleanup ISSUE_TEMPLATES

Fix github CI and cleanup ISSUE_TEMPLATES #281

Workflow file for this run

name: checks
on:
push:
branches: [ "main" ]
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21'
- name: Build
run: go build -v ./...
typos:
runs-on: ubuntu-latest
steps:
- name: Checkout Actions Repository
uses: actions/checkout@v4
- name: Check spelling of all files
uses: crate-ci/typos@master
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check code formatting using gofmt
uses: Jerome1337/gofmt-action@v1.0.5
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21'
- name: Verify modfile
run: go mod verify
- name: Vet
run: go vet ./...
- name: Install golint
run: go install golang.org/x/lint/golint@latest
- name: Lint
run: golint -set_exit_status ./...
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21'
- name: Test
run: go test -v ./...