34 lines
935 B
YAML
34 lines
935 B
YAML
|
|
name: Build
|
|
description: "Build pipeline"
|
|
inputs:
|
|
go-version:
|
|
description: "Go version to install"
|
|
default: '1.25'
|
|
required: true
|
|
golang-cilint-version:
|
|
description: "Golangci-lint version to install"
|
|
default: "2.7.2"
|
|
required: true
|
|
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- name: Install Go ${{ inputs.go-version }}
|
|
uses: actions/setup-go@v6
|
|
with:
|
|
go-version: ${{ inputs.go-version }}
|
|
check-latest: true
|
|
go-version-file: 'go.mod'
|
|
|
|
# - name: Run golangci-lint
|
|
# uses: golangci/golangci-lint-action@v9
|
|
# with:
|
|
# version: ${{ inputs.golang-cilint-version }}
|
|
|
|
- name: Install needed tools
|
|
shell: bash
|
|
run: |
|
|
set -e
|
|
go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@${{ inputs.golang-cilint-version }}
|
|
go install github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs@v0.24.0
|