File tree Expand file tree Collapse file tree 4 files changed +47
-1
lines changed
Expand file tree Collapse file tree 4 files changed +47
-1
lines changed Original file line number Diff line number Diff line change 1+ name : Test
2+
3+ on :
4+ pull_request :
5+
6+ env :
7+ IMAGES_HOSTNAME : " *"
8+
9+ jobs :
10+ next-lint :
11+ runs-on : ubuntu-latest
12+ steps :
13+ - name : Checkout
14+ uses : actions/checkout@v4
15+
16+ - name : Setup node
17+ uses : actions/setup-node@v6
18+ with :
19+ node-version : 22
20+ cache : yarn
21+ cache-dependency-path : next/yarn.lock
22+
23+ - name : Install eslint (for easier rebasing, could be added to packages.json later)
24+ working-directory : ./next
25+ run : yarn add --dev eslint-config-next 'eslint@^8'
26+
27+ - name : Install dependencies
28+ working-directory : ./next
29+ run : yarn install --frozen-lockfile
30+
31+ - name : Running linter
32+ working-directory : ./next
33+ run : yarn run next lint --output-file ../next-eslint_report.json --format json
34+ continue-on-error : true
35+
36+ - name : Annotate Code Linting Results
37+ uses : ataylorme/eslint-annotate-action@v3
38+ with :
39+ report-json : " next-eslint_report.json"
40+ only-pr-files : false
41+ continue-on-error : true
Original file line number Diff line number Diff line change 1+ {
2+ "extends" : [" next" , " next/typescript" ]
3+ }
Original file line number Diff line number Diff line change 2020
2121# Rebuild the source code only when needed
2222FROM base AS builder
23+
2324WORKDIR /app
2425COPY --from=deps /app/node_modules ./node_modules
2526COPY . .
@@ -70,4 +71,4 @@ ENV HOSTNAME="0.0.0.0"
7071CMD ["node", "server.js"]
7172
7273COPY healthcheck.mjs ./healthcheck.mjs
73- HEALTHCHECK --interval=12s --timeout=12s --start-period=30s CMD node healthcheck.mjs
74+ HEALTHCHECK --interval=12s --timeout=12s --start-period=30s CMD node healthcheck.mjs
Original file line number Diff line number Diff line change 22 "private" : true ,
33 "scripts" : {
44 "dev" : " next dev" ,
5+ "lint" : " next lint" ,
56 "build" : " next build" ,
67 "start" : " node .next/standalone/server.js" ,
78 "syncDataModel" : " node bin/syncDataModel.js" ,
You can’t perform that action at this time.
0 commit comments