add css linter workflow
This commit is contained in:
parent
7375aa89a9
commit
1b9c9f90b8
1 changed files with 21 additions and 0 deletions
21
.gitea/workflows/css.yaml
Normal file
21
.gitea/workflows/css.yaml
Normal file
|
@ -0,0 +1,21 @@
|
|||
name: CSS Linter
|
||||
run-name: ${{ gitea.actor }} is running stylelint
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
CSS-Lint:
|
||||
runs-on: ubuntu-22.04
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
npm install stylelint stylelint-config-standard
|
||||
npm init stylelint
|
||||
|
||||
- name: Run checking
|
||||
run: |
|
||||
npx stylelint "**/*.css"
|
Loading…
Reference in a new issue