Add action.yml
This commit is contained in:
parent
2a2a125681
commit
cdb41779f5
1 changed files with 22 additions and 0 deletions
22
action.yml
Normal file
22
action.yml
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
name: Run Go Lint
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_call:
|
||||||
|
inputs:
|
||||||
|
source:
|
||||||
|
description: 'The source for running the tests'
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
default: './...'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-go:
|
||||||
|
runs-on: docker
|
||||||
|
container:
|
||||||
|
image: forgejo.edf-bootstrap.cx.fg1.ffm.osc.live/devfw-cicd/pipeline-container/golang-ci-lint:v1.62
|
||||||
|
steps:
|
||||||
|
- name: Clone Repository
|
||||||
|
uses: https://forgejo.edf-bootstrap.cx.fg1.ffm.osc.live/DevFW-CICD/checkout@main
|
||||||
|
- name: Run go build
|
||||||
|
run: |
|
||||||
|
golangci-lint run ${{ inputs.source }} --out-format=json --timeout 5m --issues-exit-code 1
|
Loading…
Reference in a new issue