File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,8 +2,8 @@ FROM node:20-alpine AS builder
22
33WORKDIR /app/services
44
5- # Copy package files (from services/ context, these are at root of context )
6- COPY package*.json ./
5+ # Copy package files (from repo root context, services files are in services/ subdirectory )
6+ COPY services/ package*.json ./
77
88# Install dependencies
99RUN npm ci --only=production
Original file line number Diff line number Diff line change 2020
2121 - name : Validate JSON files
2222 run : |
23- for file in $(find . -name "*.json" -not -path "./node_modules/*" -not -path "./.docker/*" -not -path "./services/node_modules/*"); do
24- echo "Validating $file"
25- jq empty "$file" || exit 1
26- done
23+ find . -name "*.json" -not -path "./node_modules/*" -not -path "./.docker/*" -not -path "./services/node_modules/*" -exec sh -c 'jq empty "$1" || exit 1' _ {} \;
2724
2825 - name : Check for debug statements
2926 run : |
Original file line number Diff line number Diff line change 1111 - ' Doxyfile'
1212 - ' .github/workflows/docs.yml'
1313 workflow_dispatch :
14+ pull_request :
15+ branches :
16+ - main
17+ paths :
18+ - ' lib/**'
19+ - ' scripts/**'
20+ - ' services/**'
21+ - ' Doxyfile'
22+ - ' .github/workflows/docs.yml'
1423
1524permissions :
1625 contents : write
You can’t perform that action at this time.
0 commit comments