Skip to content

Initial implementation #26

Initial implementation

Initial implementation #26

Workflow file for this run

name: Push/PR
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- run: |
make build
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: |
make test
build-container:
name: Build container image
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: |
make build-container
golangci:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: false # Recommended by golangci-lint, undocumented why.
# Get golangci-lint version present in grafana-build-tools.
- id: version
run: |-
echo "golangci=$(make lint-version)" >> $GITHUB_OUTPUT
# Use the golangci-lint action, which provides Github-specific features such as diff annotations.
- name: golangci-lint
uses: golangci/golangci-lint-action@v4
with:
version: ${{ steps.version.golangci }}