Skip to content

Commit

Permalink
ci: add build
Browse files Browse the repository at this point in the history
  • Loading branch information
Behzad-rabiei committed Feb 9, 2025
1 parent 19781bc commit d4c6f3b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 18 deletions.
23 changes: 6 additions & 17 deletions .github/workflows/build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,24 +22,7 @@ env:
IMAGE_NAME: ${{ github.repository }}-${{ inputs.app }}

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 20
cache: 'npm'
- run: npm install --force
- run: npm run test
- uses: paambaati/codeclimate-action@v5.0.0
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
coverageCommand: npm run test:cov

build-push:
needs: [test]
name: Build and Push Image
runs-on: ubuntu-latest
permissions:
Expand All @@ -50,6 +33,12 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- uses: actions/setup-node@v3
with:
node-version: 20
cache: 'npm'
- run: npm install --force

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

Expand Down
2 changes: 1 addition & 1 deletion api/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ async function bootstrap() {

await app.listen(port, () => {
const logger = app.get(Logger)
logger.log(`Server is running on port ${port}!!!!.`, 'NestApplication')
logger.log(`Server is running on port ${port}!.`, 'NestApplication')
})
}

Expand Down

0 comments on commit d4c6f3b

Please sign in to comment.