...

Text file src/github.com/digitorus/timestamp/.github/workflows/golangci-lint.yml

Documentation: github.com/digitorus/timestamp/.github/workflows

     1name: golangci-lint
     2on:
     3  push:
     4    tags:
     5      - v*
     6    branches:
     7      - master
     8      - main
     9  pull_request:
    10jobs:
    11  golangci:
    12    name: lint
    13    runs-on: ubuntu-latest
    14    steps:
    15      - uses: actions/checkout@v2
    16      - name: Get dependencies
    17        run: go get -v -t -d ./...
    18      - name: golangci-lint
    19        uses: golangci/golangci-lint-action@v3
    20        with:
    21          # Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
    22          version: v1.53
    23
    24          # Optional: working directory, useful for monorepos
    25          # working-directory: somedir
    26
    27          # Optional: golangci-lint command line arguments.
    28          # args: --issues-exit-code=0
    29
    30          # Optional: show only new issues if it's a pull request. The default value is `false`.
    31          # only-new-issues: true

View as plain text