mirror of
https://github.com/miniflux/v2.git
synced 2024-08-20 03:13:22 +02:00
33 lines
770 B
YAML
33 lines
770 B
YAML
name: Linters
|
|
permissions: read-all
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
jshint:
|
|
name: Javascript Linter
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- 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@v2
|
|
- uses: actions/setup-go@v2
|
|
with:
|
|
go-version: 1.17
|
|
- uses: golangci/golangci-lint-action@v2
|
|
with:
|
|
args: --skip-dirs tests --disable errcheck --enable sqlclosecheck --enable misspell --enable gofmt --enable goimports --enable whitespace
|
|
skip-go-installation: true
|