Skip to content

Commit 46c32d1

Browse files
committed
chore(ci): fix backend ci
1 parent dafa664 commit 46c32d1

File tree

2 files changed

+3
-25
lines changed

2 files changed

+3
-25
lines changed

.github/workflows/backend-ci.yaml

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ jobs:
2727

2828
- name: Install dependencies
2929
run: |
30-
cd backend-nest
3130
pnpm install
3231
3332
- name: Build
3433
run: |
3534
cd backend-nest
35+
pnpm prisma:generate
3636
pnpm build
3737
3838
- name: Test
@@ -44,26 +44,3 @@ jobs:
4444
run: |
4545
cd backend-nest
4646
pnpm lint
47-
48-
docker:
49-
runs-on: ubuntu-latest
50-
needs: ci
51-
52-
steps:
53-
- name: Checkout
54-
uses: actions/checkout@v4
55-
- name: Set up QEMU
56-
uses: docker/setup-qemu-action@v3
57-
- name: Set up Docker Buildx
58-
uses: docker/setup-buildx-action@v3
59-
- name: Login to Docker Hub
60-
uses: docker/login-action@v3
61-
with:
62-
username: ${{ secrets.DOCKERHUB_USERNAME }}
63-
password: ${{ secrets.DOCKERHUB_TOKEN }}
64-
- name: Build and push
65-
uses: docker/build-push-action@v6
66-
with:
67-
context: ./backend-nest/
68-
push: ${{ github.ref == 'refs/heads/master' }}
69-
tags: krystxf/metro-now-backend:latest

backend-nest/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"dev": "pnpm dlx dotenv-cli -e .env.local -- nest start --watch",
99
"start:debug": "nest start --debug --watch",
1010
"start:prod": "node dist/main",
11-
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
11+
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\"",
12+
"lint:fix": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
1213
"test": "jest",
1314
"test:watch": "jest --watch",
1415
"test:cov": "jest --coverage",

0 commit comments

Comments
 (0)