Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
56ae84e
wip
Urbanmisfit90 Jun 26, 2025
61bc908
wip
Urbanmisfit90 Jul 8, 2025
1d371bf
wip
Urbanmisfit90 Jul 15, 2025
b890214
wip
Urbanmisfit90 Jul 15, 2025
ba9e96b
wip
Urbanmisfit90 Jul 15, 2025
6401662
wip
Urbanmisfit90 Jul 15, 2025
1a5df37
wip
Urbanmisfit90 Jul 16, 2025
a47cdee
wip
Urbanmisfit90 Jul 16, 2025
f19139c
wip
Urbanmisfit90 Jul 31, 2025
5e6a471
Regenerate lockfile to resolve CI issues
Urbanmisfit90 Jul 31, 2025
cd3e1e5
Regenerate lockfile under Node 20 to fix CI compatibility
Urbanmisfit90 Jul 31, 2025
d181e73
Update Node version to 20 for CI compatibility
Urbanmisfit90 Jul 31, 2025
fec4c52
Fix: enforce Node.js 20 in all jobs
Urbanmisfit90 Jul 31, 2025
a1b06c4
chore: rebuild lockfile for Node 20 compatibility
Urbanmisfit90 Jul 31, 2025
6395882
fix: force Node 20 in GitHub Actions
Urbanmisfit90 Jul 31, 2025
d8b6e68
chore: force lockfile update for CI compatibility
Urbanmisfit90 Jul 31, 2025
3d91b7c
fix: regenerate lockfile for Node 20 compatibility and CI consistency
Urbanmisfit90 Jul 31, 2025
ce6aab8
fix: remove invalid @eslint/js dep and regenerate lockfile
Urbanmisfit90 Jul 31, 2025
d1bdbf1
Sync package-lock.json with package.json
Urbanmisfit90 Jul 31, 2025
83aaac9
chore: Sync package-lock.json
Urbanmisfit90 Jul 31, 2025
ba9343d
chore: Sync package-lock.json to resolve CI failures
Urbanmisfit90 Aug 1, 2025
05d2436
Fix: force refresh lock file
Urbanmisfit90 Aug 1, 2025
6bffa85
fix: align package.json with lockfile for CI compatibility
Urbanmisfit90 Aug 1, 2025
535893e
wip
Urbanmisfit90 Aug 1, 2025
25903a6
wip
Urbanmisfit90 Aug 1, 2025
f5ff184
fix: add overrides to unify dependency versions and fix CI npm ci errors
Urbanmisfit90 Aug 1, 2025
063ca4c
fix: add dependency overrides, sync lockfile
Urbanmisfit90 Aug 1, 2025
650ed14
wip
Urbanmisfit90 Aug 1, 2025
ee5d35b
wip
Urbanmisfit90 Aug 1, 2025
0ec8168
wip
Urbanmisfit90 Aug 1, 2025
b8ed0f9
fix: sync package-lock.json with package.json
Urbanmisfit90 Aug 1, 2025
453061a
wip
Urbanmisfit90 Aug 1, 2025
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
78 changes: 28 additions & 50 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,37 +6,30 @@ on:
pull_request:
branches: [ main, develop ]

env:
CI: true
NODE_VERSION: '18'

jobs:
lint_and_test:
name: Lint & Test
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js

- name: Set up Node.js 20
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
node-version: 20
cache: 'npm'

- name: Install ESLintv8
- name: Install ESLint
run: npm install --save-dev eslint@8

- name: Run ESLint
run: npx eslint src --ext .js,.jsx --max-warnings=0

- name: Run Jest tests
run: npm run test:ci

# - name: Run Lighthouse CI
# run: npx lhci autorun --config=.lighthouserc.js

- name: Upload test coverage
uses: actions/upload-artifact@v4
with:
Expand All @@ -48,34 +41,31 @@ jobs:
name: Build & Validate
runs-on: ubuntu-latest
needs: lint_and_test
strategy:
matrix:
node-version: [18.x]


steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js

- name: Set up Node.js 20
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
node-version: 20
cache: 'npm'

- name: Install dependencies
run: npm ci
run: npm install

- name: Install serve
run: npm install -g serve

- name: Build project
run: |
npm run build
ls -la build
npm run build
ls -la build

- name: Set Public Url
run: echo "PUBLIC_URL=." >> $GITHUB_ENV
run: echo "PUBLIC_URL=." >> $GITHUB_ENV

- name: Start Server and Log Output
run: |
npx serve -s build -l 8080 > server.log 2>&1 &
Expand All @@ -86,7 +76,7 @@ jobs:
- name: Display Server Logs
run: cat server.log

- name: verify server running
- name: Verify server running
run: |
for i in {1..3}; do
echo "Attempt $i to check server status..."
Expand All @@ -99,34 +89,22 @@ jobs:
fi
done
curl -I http://localhost:8080 || (echo "Server is not running after 3 attempts" && exit 1)

- name: Check service worker
run: |
grep -i "serviceWorker" build/index.html || echo "❌ No service worker registered"
ls build/service-worker.js || echo "❌ service-worker.js not found"

- name: List build content
run: ls -la build

- name: Log server contents
run: cat server.log

- name: Debug loaded HTML
run: curl -s http://localhost:8080 | tee page.html

- name: Debug Build Output
run: |
echo "🔍 Build manifest.json:"
cat build/manifest.json || echo "❌ manifest.json missing"

echo "🔍 Check index.html for manifest link:"
grep -i "manifest" build/index.html || echo "❌ Manifest not linked"

echo "🔍 Apple touch icon:"
grep -i "apple-touch-icon" build/index.html || echo "❌ Not linked"

echo "🔍 Check icons folder:"
ls -lh build/icons || echo "❌ Icons folder missing"
echo "🔍 manifest.json:"
cat build/manifest.json || echo "❌ missing"
echo "🔍 index.html link to manifest:"
grep -i "manifest" build/index.html || echo "❌ not linked"
echo "🔍 apple-touch-icon:"
grep -i "apple-touch-icon" build/index.html || echo "❌ not linked"
echo "🔍 icons folder:"
ls -lh build/icons || echo "❌ missing"
#
# - name: Run Lighthouse audit
# uses: treosh/lighthouse-ci-action@v9
Expand All @@ -141,7 +119,7 @@ jobs:

- name: Package Extension
run: npm run package

- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
Expand Down
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
Ignore coverage .gitignore

#node modules take up alot of space after npm install
#build related
node_modules
Expand All @@ -21,3 +23,7 @@ Icon
#sensitive code
.settings/
.vscode/

# Test coverage
coverage/

Loading