Skip to content

Commit 4474424

Browse files
committed
feat(62305): fixes
1 parent 0954579 commit 4474424

File tree

1 file changed

+17
-15
lines changed

1 file changed

+17
-15
lines changed

.github/workflows/ci-cd-typescript.yml

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,11 @@ on:
77
DOCKER_PASSWORD:
88
required: true
99
inputs:
10-
uploadJarArtifact:
10+
checkAndTestOutsideDocker:
1111
required: false
1212
type: boolean
1313
default: false
14-
jarArtifactName:
15-
required: false
16-
type: string
17-
jarArtifactPath:
18-
required: false
19-
type: string
20-
checkAndTestOutsideDocker:
14+
codeCoverageEnabled:
2115
required: false
2216
type: boolean
2317
default: false
@@ -52,6 +46,18 @@ jobs:
5246
if: ${{ inputs.checkAndTestOutsideDocker }}
5347
run: npm run check-and-build
5448

49+
- name: Upload coverage reports to Codecov
50+
if: ${{ codeCoverageEnabled }}
51+
uses: codecov/codecov-action@v5
52+
with:
53+
token: ${{ secrets.CODECOV_TOKEN }}
54+
55+
- name: Upload test results to Codecov
56+
if: ${{ codeCoverageEnabled && !cancelled() }}
57+
uses: codecov/test-results-action@v1
58+
with:
59+
token: ${{ secrets.CODECOV_TOKEN }}
60+
5561
- name: Lowercase Docker Image Name
5662
run: |
5763
echo "IMAGE_NAME=${IMAGE_NAME_MIXED_CASE,,}" >> "${GITHUB_ENV}"
@@ -67,7 +73,7 @@ jobs:
6773
type=semver,pattern={{major}}.{{minor}}
6874
type=semver,pattern={{major}},enable=${{ !startsWith(github.ref, 'refs/tags/v0.') }}
6975
type=sha,format=long
70-
76+
7177
- name: Setup Docker Buildx
7278
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop'
7379
uses: docker/setup-buildx-action@v3
@@ -83,7 +89,7 @@ jobs:
8389
- name: Check and test
8490
run: |
8591
docker run --rm "${{ env.IMAGE_NAME }}:${{ env.TEST_STAGE }}"
86-
92+
8793
- name: Login to Docker Hub
8894
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || contains(github.ref, 'refs/tags/'))
8995
uses: docker/login-action@v3
@@ -99,8 +105,4 @@ jobs:
99105
push: true
100106
target: "${{ env.PRODUCTION_STAGE }}"
101107
tags: ${{ steps.meta.outputs.tags }}
102-
labels: ${{ steps.meta.outputs.labels }}
103-
104-
105-
106-
108+
labels: ${{ steps.meta.outputs.labels }}

0 commit comments

Comments
 (0)