feat: Split GHA pipelines #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: | |
- '**' | |
workflow_dispatch: {} | |
name: Build | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
#go-version: 'stable' | |
go-version-file: 'go.mod' | |
check-latest: true | |
id: go | |
- name: Lint | |
run: | | |
go mod tidy | |
make fmt | |
make vet | |
#go get -u golang.org/x/lint/golint | |
#make lint | |
if: success() | |
- name: Test | |
run: make test | |
if: success() | |
- name: Build | |
run: go build -mod vendor ./... | |
if: success() |