1 Commits

Author SHA1 Message Date
renovate 9138c0df56 fix(deps): update module github.com/99designs/gqlgen to v0.17.90
renovate/stability-days Updates have met minimum release age requirement
otelsetup / vulnerabilities (pull_request) Successful in 1m51s
otelsetup / test (pull_request) Failing after 2m52s
pre-commit / pre-commit (pull_request) Successful in 6m37s
2026-04-28 19:07:43 +00:00
3 changed files with 17 additions and 21 deletions
+15 -11
View File
@@ -18,10 +18,11 @@ jobs:
run: go test -race -coverprofile=coverage.txt ./... run: go test -race -coverprofile=coverage.txt ./...
- name: Check coverage - name: Check coverage
id: coverage uses: vladopajic/go-test-coverage@v2
run: | with:
go install github.com/vladopajic/go-test-coverage/v2@latest config: ./.testcoverage.yml
go-test-coverage --config ./.testcoverage.yml --github-action-output
# Download baseline coverage from main branch (for PRs)
- name: Download baseline coverage - name: Download baseline coverage
if: gitea.event_name == 'pull_request' if: gitea.event_name == 'pull_request'
uses: actions/download-artifact@v3 uses: actions/download-artifact@v3
@@ -29,12 +30,14 @@ jobs:
name: coverage-baseline name: coverage-baseline
path: ./baseline path: ./baseline
continue-on-error: true continue-on-error: true
# Compare coverage against baseline (for PRs)
- name: Compare coverage - name: Compare coverage
if: gitea.event_name == 'pull_request' if: gitea.event_name == 'pull_request'
run: | run: |
CURRENT="${{ steps.coverage.outputs.total-coverage }}" CURRENT=$(go tool cover -func=coverage.txt | grep "^total:" | awk '{print $NF}' | tr -d '%')
if [ -f ./baseline/coverage.txt ]; then if [ -f ./baseline/coverage.txt ]; then
BASE=$(cat ./baseline/coverage.txt) BASE=$(go tool cover -func=./baseline/coverage.txt | grep "^total:" | awk '{print $NF}' | tr -d '%')
echo "Base coverage: ${BASE}%" echo "Base coverage: ${BASE}%"
echo "Current coverage: ${CURRENT}%" echo "Current coverage: ${CURRENT}%"
if [ "$(echo "$CURRENT < $BASE" | bc -l)" -eq 1 ]; then if [ "$(echo "$CURRENT < $BASE" | bc -l)" -eq 1 ]; then
@@ -46,9 +49,8 @@ jobs:
echo "No baseline coverage found, skipping comparison" echo "No baseline coverage found, skipping comparison"
echo "Current coverage: ${CURRENT}%" echo "Current coverage: ${CURRENT}%"
fi fi
- name: Save coverage baseline
if: gitea.ref == 'refs/heads/main' # Upload coverage as baseline (only on main)
run: echo "${{ steps.coverage.outputs.total-coverage }}" > coverage.txt
- name: Upload coverage baseline - name: Upload coverage baseline
if: gitea.ref == 'refs/heads/main' if: gitea.ref == 'refs/heads/main'
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
@@ -56,17 +58,19 @@ jobs:
name: coverage-baseline name: coverage-baseline
path: coverage.txt path: coverage.txt
retention-days: 90 retention-days: 90
# Post coverage to PR comment
- name: Post coverage comment - name: Post coverage comment
if: gitea.event_name == 'pull_request' if: gitea.event_name == 'pull_request'
env: env:
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }} GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
GITEA_URL: ${{ gitea.server_url }} GITEA_URL: ${{ gitea.server_url }}
run: | run: |
COVERAGE="${{ steps.coverage.outputs.total-coverage }}" COVERAGE=$(go tool cover -func=coverage.txt | grep "^total:" | awk '{print $NF}')
curl -X POST "${GITEA_URL}/api/v1/repos/${{ gitea.repository }}/issues/${{ gitea.event.pull_request.number }}/comments" \ curl -X POST "${GITEA_URL}/api/v1/repos/${{ gitea.repository }}/issues/${{ gitea.event.pull_request.number }}/comments" \
-H "Authorization: token ${GITEA_TOKEN}" \ -H "Authorization: token ${GITEA_TOKEN}" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-d "{\"body\": \"## Coverage Report\n\nTotal coverage: **${COVERAGE}%**\"}" -d "{\"body\": \"## Coverage Report\n\nTotal coverage: **${COVERAGE}**\"}"
vulnerabilities: vulnerabilities:
runs-on: ubuntu-latest runs-on: ubuntu-latest
+1 -1
View File
@@ -1,3 +1,3 @@
{ {
"version": "v0.2.7" "version": "v0.2.6"
} }
+1 -9
View File
@@ -2,15 +2,7 @@
All notable changes to this project will be documented in this file. All notable changes to this project will be documented in this file.
## [0.2.7] - 2026-04-29 ## [0.2.6] - 2026-03-24
### 🐛 Bug Fixes
- *(deps)* Update opentelemetry-go monorepo (#131)
- *(ci)* Use go-test-coverage binary directly to fix Gitea Actions (#134)
- *(deps)* Update module github.com/99designs/gqlgen to v0.17.90 (#133)
## [0.2.6] - 2026-04-02
### 🐛 Bug Fixes ### 🐛 Bug Fixes