Skip to content

build out keeman as a binary and docker image #1

build out keeman as a binary and docker image

build out keeman as a binary and docker image #1

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, test]
steps:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.18
- name: Check out code
uses: actions/checkout@v3
- name: Build
run: go build