Skip to content

Update golangci-lint to v1.59 (#103) #207

Update golangci-lint to v1.59 (#103)

Update golangci-lint to v1.59 (#103) #207

Workflow file for this run

name: ci-build-test
on:
push:
branches:
- main
pull_request:
permissions:
contents: read
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version-file: './go.mod'
check-latest: true
cache: true
- name: Run Go tests
run: go test ./...
- name: build
run: go build ./...
- name: run clank - failure
run: "! ./clank testdata/push.yaml"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: run clank - success
run: ./clank .github/workflows
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}