Update README.md #206
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: Lint | |
on: | |
pull_request: | |
branches: | |
- main | |
env: | |
PLZ_CONFIG_PROFILE: ci | |
SEGMENT_DOWNLOAD_TIMEOUT_MINS: "2" | |
permissions: | |
# Grant the ability to checkout the repository | |
contents: read | |
# Allow reviewdog to comment on PRs | |
pull-requests: write | |
jobs: | |
build: | |
name: Lint | |
runs-on: ubuntu-latest | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
- name: Cache plz | |
id: cache-plz | |
uses: actions/cache@v3 | |
with: | |
path: .plz-cache | |
key: ${{ runner.os }}-plz | |
- name: Lint | |
env: | |
REVIEWDOG_GITHUB_API_TOKEN: "${{ github.token }}" | |
GOLANGCI_LINT_CACHE: "${{ github.workspace }}/.golangci-lint-cache" | |
run: "./pleasew -p -v=2 lint" |