Release workflow (#213) #41
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: "10 - Test: Linting" | |
on: | |
push: | |
tags: | |
- v* | |
branches: | |
- main | |
- "v*" | |
workflow_dispatch: | |
pull_request: | |
jobs: | |
golangci: | |
name: Test Linting | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Powerpipe repository | |
uses: actions/checkout@v4 | |
with: | |
path: powerpipe | |
- name: Checkout Pipe Fittings Components repository | |
uses: actions/checkout@v4 | |
with: | |
repository: turbot/pipe-fittings | |
path: pipe-fittings | |
# this is required, check golangci-lint-action docs | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: '1.21' | |
cache: false # setup-go v4 caches by default, do not change this parameter, check golangci-lint-action doc: https://github.com/golangci/golangci-lint-action/pull/704 | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v4 | |
with: | |
version: v1.54.1 | |
args: --timeout=10m | |
working-directory: powerpipe |