Skip to content

Add a releaser

Add a releaser #10

Workflow file for this run

name: Build and Test
on: push
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.18
- name: Check out code
uses: actions/checkout@v3
- name: Lint Go Code
run: |
go get -u golang.org/x/lint/golint
find ./ -name "*.go" |xargs -IFILE gofmt -s -w FILE
# test:
# name: Test
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-go@v4
# with:
# go-version: 1.18
# - run: go test ./...
build:
name: Build
runs-on: ubuntu-latest
needs: [lint]
steps:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.21
- name: Check out code
uses: actions/checkout@v3
- name: Build
run: go build