ci: add lint workflow
Some checks failed
Push to Docker Hub / Push Docker image to Docker Hub (push) Has been cancelled
Run ESLint / Run ESLint (push) Successful in 9m44s

This commit is contained in:
Aidan 2025-05-10 03:10:14 -04:00
parent 78436b4a9e
commit 65a50c6ba1
2 changed files with 31 additions and 0 deletions

30
.gitea/workflows/lint.yml Normal file
View 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

View File

@ -2,6 +2,7 @@
[![License: Unlicense](https://img.shields.io/badge/license-Unlicense-blue.svg)](http://unlicense.org/)
[![Build Status](https://git.pontusmail.org/aidan/aidxnCC/actions/workflows/push.yml/badge.svg)](https://git.pontusmail.org/aidan/aidxnCC/actions/?workflow=push.yml)
[![ESLint Status](https://git.pontusmail.org/aidan/aidxnCC/actions/workflows/lint.yml/badge.svg)](https://git.pontusmail.org/aidan/aidxnCC/actions/?workflow=lint.yml)
aidxnCC is the third version of my personal website.