add codeQL checking
This commit is contained in:
parent
5042fdc53f
commit
55dac53746
1 changed files with 39 additions and 0 deletions
39
.forgejo/workflows/lint.yml
Normal file
39
.forgejo/workflows/lint.yml
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
name: CodeQL
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
lint-ubuntu:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: node:20-bookworm
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Install
|
||||
run: npm install
|
||||
- name: HTML
|
||||
run: npx htmlhint "**/*.html"
|
||||
- name: CSS
|
||||
run: npx stylelint "**/*.css"
|
||||
- name: JS
|
||||
run: npx eslint .
|
||||
|
||||
lint-debian:
|
||||
needs: lint-ubuntu
|
||||
if: failure()
|
||||
runs-on: debian-latest
|
||||
container:
|
||||
image: node:20-bookworm
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Install
|
||||
run: npm install
|
||||
- name: HTML
|
||||
run: npx htmlhint "**/*.html"
|
||||
- name: CSS
|
||||
run: npx stylelint "**/*.css"
|
||||
- name: JS
|
||||
run: npx eslint .
|
||||
Loading…
Reference in a new issue