Skip to content

Commit d067754

Browse files
committed
update
1 parent a22aced commit d067754

File tree

2 files changed

+35
-35
lines changed

2 files changed

+35
-35
lines changed

.github/workflows/check-required-label.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Check Required Labels
22

33
on:
44
pull_request:
5-
types: [opened, labeled, unlabeled]
5+
types: [opened, labeled, unlabeled, synchronize]
66

77
jobs:
88
check-required-label:

.github/workflows/ci.yml

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -175,40 +175,40 @@ jobs:
175175
- name: errors
176176
run: golangci-lint run
177177
if: ${{ failure() }}
178-
upload-coverage:
179-
# List all jobs that produce coverage files
180-
needs: [unit-tests, integration-tests]
181-
if: github.event.pull_request.head.repo.full_name == github.repository
182-
runs-on: ubuntu-latest
183-
steps:
184-
- name: Checkout code
185-
uses: actions/checkout@v4
186-
187-
- name: Setup Go
188-
uses: actions/setup-go@v5
189-
with:
190-
go-version: 1.25.x
191-
192-
- name: Download all coverage artifacts
193-
uses: actions/download-artifact@v4
194-
with:
195-
path: /tmp/code_coverage
196-
197-
- name: Combine coverage files
198-
run: |
199-
# Find all directories in /tmp/code_coverage and create a comma-separated list
200-
COVERAGE_DIRS=$(find /tmp/code_coverage -mindepth 1 -maxdepth 1 -type d -printf '/tmp/code_coverage/%f,' | sed 's/,$//')
201-
echo "Coverage directories: $COVERAGE_DIRS"
202-
# Run the combine command with the generated list
203-
go tool covdata textfmt -i=$COVERAGE_DIRS -o coverage.out
204-
echo "Combined coverage:"
205-
go tool cover -func coverage.out | tail -1 | awk '{print $3}'
206-
207-
- name: Upload to Codacy
208-
run: |
209-
CODACY_PROJECT_TOKEN=${{ secrets.CODACY_PROJECT_TOKEN }} \
210-
bash <(curl -Ls https://coverage.codacy.com/get.sh) report \
211-
--force-coverage-parser go -r coverage.out
178+
# upload-coverage:
179+
# # List all jobs that produce coverage files
180+
# needs: [unit-tests, integration-tests]
181+
# if: github.event.pull_request.head.repo.full_name == github.repository
182+
# runs-on: ubuntu-latest
183+
# steps:
184+
# - name: Checkout code
185+
# uses: actions/checkout@v4
186+
#
187+
# - name: Setup Go
188+
# uses: actions/setup-go@v5
189+
# with:
190+
# go-version: 1.25.x
191+
#
192+
# - name: Download all coverage artifacts
193+
# uses: actions/download-artifact@v4
194+
# with:
195+
# path: /tmp/code_coverage
196+
#
197+
# - name: Combine coverage files
198+
# run: |
199+
# # Find all directories in /tmp/code_coverage and create a comma-separated list
200+
# COVERAGE_DIRS=$(find /tmp/code_coverage -mindepth 1 -maxdepth 1 -type d -printf '/tmp/code_coverage/%f,' | sed 's/,$//')
201+
# echo "Coverage directories: $COVERAGE_DIRS"
202+
# # Run the combine command with the generated list
203+
# go tool covdata textfmt -i=$COVERAGE_DIRS -o coverage.out
204+
# echo "Combined coverage:"
205+
# go tool cover -func coverage.out | tail -1 | awk '{print $3}'
206+
#
207+
# - name: Upload to Codacy
208+
# run: |
209+
# CODACY_PROJECT_TOKEN=${{ secrets.CODACY_PROJECT_TOKEN }} \
210+
# bash <(curl -Ls https://coverage.codacy.com/get.sh) report \
211+
# --force-coverage-parser go -r coverage.out
212212

213213
check-for-fixups:
214214
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)