Skip to content

chore: add Go build workflow and Makefile #1

chore: add Go build workflow and Makefile

chore: add Go build workflow and Makefile #1

Workflow file for this run

name: Go
env:
GO_VERSION: '1.23'
GO_LINT_VERSION: 'v1.60.3'
on:
push:
branches:
- develop
- main
pull_request:
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{env.GO_VERSION}}
- name: Build
run: make build
lint:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{env.GO_VERSION}}
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: ${{env.GO_LINT_VERSION}}
test:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{env.GO_VERSION}}
- name: Test
run: make test