mirror of
https://github.com/miniflux/v2.git
synced 2024-08-20 03:13:22 +02:00
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 3 to 4. - [Release notes](https://github.com/golangci/golangci-lint-action/releases) - [Commits](https://github.com/golangci/golangci-lint-action/compare/v3...v4) --- updated-dependencies: - dependency-name: golangci/golangci-lint-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
33 lines
768 B
YAML
33 lines
768 B
YAML
name: Linters
|
|
permissions: read-all
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
jshint:
|
|
name: Javascript Linter
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Install jshint
|
|
run: |
|
|
sudo npm install -g jshint@2.13.3
|
|
- name: Run jshint
|
|
run: jshint ui/static/js/*.js
|
|
|
|
golangci:
|
|
name: Golang Linter
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-go@v5
|
|
with:
|
|
go-version: "1.21"
|
|
- uses: golangci/golangci-lint-action@v4
|
|
with:
|
|
args: --timeout 10m --skip-dirs tests --disable errcheck --enable sqlclosecheck --enable misspell --enable gofmt --enable goimports --enable whitespace
|