add linting, sonarqube, renovate
This commit is contained in:
29
.gitea/workflows/lint.yml
Normal file
29
.gitea/workflows/lint.yml
Normal file
@ -0,0 +1,29 @@
|
||||
name: Lint
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
branches:
|
||||
- "**" # matches every branch
|
||||
- "!dev" # excludes dev
|
||||
- "!main" # excludes main
|
||||
|
||||
jobs:
|
||||
eslint:
|
||||
name: Lint
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20
|
||||
cache: "npm"
|
||||
- run: npm i
|
||||
- uses: sibiraj-s/action-eslint@v3.0.1
|
||||
with:
|
||||
eslint-args: "--ignore-path=.gitignore --quiet"
|
||||
extensions: "js,jsx,ts,tsx"
|
||||
annotations: true
|
||||
all-files: true
|
Reference in New Issue
Block a user