Skip to content

Merge pull request #149 from getlago/unit-price #387

Merge pull request #149 from getlago/unit-price

Merge pull request #149 from getlago/unit-price #387

Workflow file for this run

name: golangci-lint
on:
push:
tags:
- v*
branches:
- main
pull_request:
permissions:
contents: read
# Optional: allow read access to pull request. Use with `only-new-issues` option.
# pull-requests: read
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version-file: go.mod
# The builtin cache feature ensures that installing golangci-lint
# is consistently fast.
cache: true
cache-dependency-path: go.sum
- name: install-golangci-lint
# Install golangci-lint from source instead of using
# golangci-lint-action to ensure the golangci-lint binary is built with
# the same Go version we're targeting.
run: go install github.com/golangci/golangci-lint/cmd/[email protected]
- name: golangci-lint
run: golangci-lint run --version --verbose --out-format=github-actions