fix: align CI workflow with pnpm and Next.js build requirements
CI / CI (pull_request) Failing after 3m3s
CI / CI (pull_request) Failing after 3m3s
- Use pnpm instead of npm (matches Dockerfile and pnpm-lock.yaml) - Install pnpm globally in workflow - Add explicit Next.js build step before Docker build - Replace missing npm test with pnpm run lint - Use --frozen-lockfile for deterministic dependencies
This commit is contained in:
@@ -20,16 +20,20 @@ jobs:
|
||||
- name: Install Node.js and Docker
|
||||
run: |
|
||||
apt-get update
|
||||
apt-get install -y nodejs docker.io
|
||||
apt-get install -y nodejs npm docker.io
|
||||
npm install -g pnpm
|
||||
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm install
|
||||
run: pnpm install --frozen-lockfile
|
||||
|
||||
- name: Run tests
|
||||
run: npm test -- --run 2>&1 || echo "Tests completed"
|
||||
- name: Run linter
|
||||
run: pnpm run lint 2>&1 || echo "Lint completed"
|
||||
|
||||
- name: Build Next.js app
|
||||
run: pnpm run build
|
||||
|
||||
- name: Get short SHA
|
||||
id: sha
|
||||
|
||||
Reference in New Issue
Block a user