Fix executable name in new service #116
Workflow file for this run
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
name: Go | |
on: | |
push: | |
pull_request: | |
jobs: | |
build: | |
name: "Build" | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go: | |
- '1.19' | |
- '1.20' | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Setup go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ matrix.go }} | |
- name: Go build (source) | |
run: make | |
- name: Go build (tests) | |
run: make test | |
- name: Go lint | |
run: | | |
if [ $(gofmt -l src/* | wc -l) -gt 0 ]; then | |
gofmt -d src/* | |
exit 1 | |
fi | |
- name: Go vet | |
run: make vet | |
lint-code: | |
name: Lint code | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Setup go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.19' | |
- name: Run golangci-lint | |
uses: golangci/golangci-lint-action@v3 |