Skip to content
This repository has been archived by the owner on Nov 21, 2024. It is now read-only.

Fix github CI and cleanup ISSUE_TEMPLATES #278

Fix github CI and cleanup ISSUE_TEMPLATES

Fix github CI and cleanup ISSUE_TEMPLATES #278

Workflow file for this run

name: go
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
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 ./...
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 ./...