mirror of
https://github.com/miniflux/v2.git
synced 2025-08-01 17:38:37 +00:00
42 lines
1,010 B
YAML
42 lines
1,010 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 linters
|
|
run: |
|
|
sudo npm install -g jshint@2.13.6 eslint@8.57.0
|
|
- name: Run jshint
|
|
run: jshint internal/ui/static/js/*.js
|
|
- name: Run ESLint
|
|
run: eslint internal/ui/static/js/*.js
|
|
|
|
golangci:
|
|
name: Golang Linters
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-go@v5
|
|
with:
|
|
go-version: "1.23.x"
|
|
- uses: golangci/golangci-lint-action@v6
|
|
with:
|
|
args: >
|
|
--timeout 10m
|
|
--exclude-dirs=tests
|
|
--disable errcheck
|
|
--enable sqlclosecheck,misspell,gofmt,goimports,whitespace,gocritic
|
|
- uses: dominikh/staticcheck-action@v1.3.1
|
|
with:
|
|
version: "2024.1.1"
|
|
install-go: false
|