ci: add lint workflow
This commit is contained in:
parent
78436b4a9e
commit
65a50c6ba1
30
.gitea/workflows/lint.yml
Normal file
30
.gitea/workflows/lint.yml
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
name: Run ESLint
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
lint:
|
||||||
|
name: Run ESLint
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Setup Node.js
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: '23'
|
||||||
|
cache: 'npm'
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: npm ci
|
||||||
|
|
||||||
|
- name: Run ESLint
|
||||||
|
run: npm run lint
|
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
[](http://unlicense.org/)
|
[](http://unlicense.org/)
|
||||||
[](https://git.pontusmail.org/aidan/aidxnCC/actions/?workflow=push.yml)
|
[](https://git.pontusmail.org/aidan/aidxnCC/actions/?workflow=push.yml)
|
||||||
|
[](https://git.pontusmail.org/aidan/aidxnCC/actions/?workflow=lint.yml)
|
||||||
|
|
||||||
aidxnCC is the third version of my personal website.
|
aidxnCC is the third version of my personal website.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user