Skip to content
This repository was archived by the owner on Nov 23, 2025. It is now read-only.
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
53 changes: 53 additions & 0 deletions .github/workflows/buildtest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Build and Test Frontend_Web

on:
push:
branches:
- '**'
pull_request:
branches:
- '**'

jobs:
build-test:
name: Install, Lint and Build
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Use Node.js 20 and cache npm
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: package-lock.json

- name: Cache Next.js build artifacts
uses: actions/cache@v4
with:
path: ./.next/cache
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**/*.{js,jsx,ts,tsx,css,html}') }}
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-

- name: Install dependencies
run: npm ci

- name: Run linter
run: npm run lint

- name: Build production bundle
run: npm run build

- name: Run a minimal start for smoke test (background)
run: |
npm run start &
sleep 3
# try a quick HTTP probe if curl is available
if command -v curl >/dev/null 2>&1; then
curl -sSf http://localhost:3000/ || true
fi
pkill -f "next start" || true
shell: bash
134 changes: 120 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 9 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,22 @@
"lint": "eslint"
},
"dependencies": {
"axios": "^1.12.2",
"js-cookie": "^3.0.5",
"next": "15.5.3",
"react": "19.1.0",
"react-dom": "19.1.0",
"next": "15.5.3"
"react-dom": "19.1.0"
},
"devDependencies": {
"typescript": "^5",
"@eslint/eslintrc": "^3",
"@tailwindcss/postcss": "^4",
"@types/js-cookie": "^3.0.6",
"@types/node": "^20",
"@types/react": "^19",
"@types/react-dom": "^19",
"@tailwindcss/postcss": "^4",
"tailwindcss": "^4",
"eslint": "^9",
"eslint-config-next": "15.5.3",
"@eslint/eslintrc": "^3"
"tailwindcss": "^4",
"typescript": "^5"
}
}
Loading