[local] Fix local setup of webhook conversion #532
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: Build PR | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
# git checkout | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
# go env | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: "1.21" | |
# make lint | |
- name: Lint | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
version: v1.55.2 | |
args: --timeout 5m $(go list -f '{{.Dir}}/...' -m | tr '\n' ' ') | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
# git checkout | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
# go env | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: "1.21" | |
# make test | |
- name: Test | |
# find all go.mod files and run go test against directories containing go.mod files | |
run: go test -v $(go list -f '{{.Dir}}/...' -m | tr '\n' ' ') | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
# git checkout | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
# go env | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: "1.21" | |
# make build | |
- name: Build | |
run: go build -v cmd/grafana-app-sdk/*.go |