feat(analytics): Add analytics resources #376
Workflow file for this run
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: 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 |