File tree Expand file tree Collapse file tree 5 files changed +26
-28
lines changed
Expand file tree Collapse file tree 5 files changed +26
-28
lines changed Original file line number Diff line number Diff line change 1- name : FRONTEND-CI
2-
1+ name : client.yml
32on :
43 push :
54 branches :
65 - main
6+ - ' feature/**'
7+ paths :
8+ - ' client/**'
79 pull_request :
810 branches :
911 - main
12+ paths :
13+ - ' client/**'
1014
1115jobs :
12- build-test :
13- runs-on : ubuntu-latest
16+ build :
17+ runs-on : ubuntu-22.04
18+ defaults :
19+ run :
20+ working-directory : ./client
1421
1522 steps :
16- - name : Checkout repository
17- uses : actions/checkout@v4
23+ - uses : actions/checkout@v4
24+
25+ - name : DEBUG stage
26+ run : |
27+ pwd
28+ ls -la
29+ echo "Current branch: ${GITHUB_REF}"
1830
19- # Node(Dockerfile)
20- - name : Setup Node.js
31+ - name : Setup Nodejs
2132 uses : actions/setup-node@v4
2233 with :
23- node-version : 20
24- cache : npm
34+ node-version : ' 20'
35+ cache : ' npm'
36+ cache-dependency-path : ' client/package-lock.json'
37+
2538
2639 # Dependencies
2740 - name : Install dependencies
4255 # Production build
4356 - name : Build project
4457 run : npm run build
45-
46- docker-build :
47- runs-on : ubuntu-latest
48- needs : build-test
49-
50- steps :
51- - name : Checkout repository
52- uses : actions/checkout@v4
53-
54- # Docker
55- - name : Build Docker image
56- run : docker build -t lango-frontend .
Original file line number Diff line number Diff line change 4242 run : npm ci
4343
4444 - name : Prisma generate
45- env :
46- DATABASE_URL : ${{ secrets.DATABASE_URL }}
4745 run : npx prisma generate
4846
4947 - name : Prisma validate
50- env :
51- DATABASE_URL : ${{ secrets.DATABASE_URL }}
5248 run : npx prisma validate
5349
5450 - name : Build project
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ COPY . .
1212RUN npm run build
1313
1414
15- FROM alpine:3.19
15+ FROM alpine:20-alpine
1616WORKDIR /app
1717COPY --from=builder /app/dist ./dist
1818
Original file line number Diff line number Diff line change @@ -40,6 +40,8 @@ export const AsideMenu = memo((props: AsideMenuProps) => {
4040 }
4141 } , [ locale ] ) ;
4242
43+ //test
44+
4345 return (
4446 < aside className = { clsx ( styles . aside , [ className ] ) } >
4547 < div >
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ generator client {
33 output = " ./generated/prisma "
44}
55
6-
76datasource db {
87 provider = " postgresql "
98}
You can’t perform that action at this time.
0 commit comments