Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/frontend-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Frontend Pipeline

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4 # Step 1: Download your code

- name: Install Node.js (for linters/tools)
uses: actions/setup-node@v4
with:
node-version: '20'

- name: Install HTMLHint
run: npm install -g htmlhint

- name: Run HTML Lint
run: htmlhint "**/*.html"

- name: Install CSS Lint
run: npm install -g stylelint

- name: Install JS Lint (ESLint)
run: npm install -g eslint

- name: Run JS Lint
run: npx eslint "**/*.js"
8 changes: 8 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export default [
{
rules: {
"no-unused-vars": "warn",
"no-undef": "warn",
},
},
];
Loading