Skip to content
Merged
Changes from 1 commit
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
43 changes: 43 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: CI/CD Pipeline

on:
push:
branches: [master]
pull_request:
branches: [master]

jobs:
formatting:
name: "🔧 Formatting & Lint"
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
continue-on-error: true

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
continue-on-error: true

Copy link

Copilot AI Jun 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can add an actions/cache step before installing dependencies to cache npm artifacts (e.g., .npm or node_modules) and speed up subsequent runs.

Suggested change
- name: Cache npm dependencies
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-

Copilot uses AI. Check for mistakes.
- name: Install dependencies
run: npm ci
continue-on-error: true

- name: Prettier format
run: npm run format
continue-on-error: true

- name: ESLint lint
run: npm run lint
continue-on-error: true

complete:
name: "🎉 Pipeline Complete"
runs-on: ubuntu-latest
needs: [formatting]
if: ${{ always() }}
steps:
- name: Final status
run: echo "✅ CI/CD pipeline finished successfully."
Loading