miniflux/.github/workflows/linters.yml

40 lines
1 KiB
YAML
Raw Normal View History

2021-03-23 05:04:10 +01:00
name: Linters
permissions: read-all
2021-03-23 05:04:10 +01:00
on:
pull_request:
branches:
2022-08-12 06:17:38 +02:00
- main
workflow_dispatch:
2021-03-23 05:04:10 +01:00
jobs:
jshint:
name: Javascript Linter
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install linters
2021-03-23 05:04:10 +01:00
run: |
sudo npm install -g jshint@2.13.6 eslint@8.57.0
2021-03-23 05:04:10 +01:00
- name: Run jshint
run: jshint internal/ui/static/js/*.js
- name: Run ESLint
run: eslint internal/ui/static/js/*.js
2021-03-23 05:04:10 +01:00
golangci:
name: Golang Linters
2021-03-23 05:04:10 +01:00
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
2021-03-23 05:04:10 +01:00
with:
go-version: "1.22.x"
- run: "go vet ./..."
- uses: golangci/golangci-lint-action@v4
2021-03-23 05:04:10 +01:00
with:
args: --timeout 10m --skip-dirs tests --disable errcheck --enable sqlclosecheck --enable misspell --enable gofmt --enable goimports --enable whitespace --enable gocritic
- uses: dominikh/staticcheck-action@v1.3.1
with:
version: "2023.1.7"
install-go: false