Skip to content

Commit f8ed615

Browse files
authored
feat: add update check, machine-readable output formats, and latency metrics (#18)
- Add UPDATE_CHECK option to notify users of new versions at startup - Add FORMAT option for machine-readable output (json, yaml, xml) - Add latency metrics (avg ms) to benchmark results - Add version injection via Docker build arg - Add GitHub badges for tag, CodeQL, Tests, Docker Image workflows - Improve test workflow with continue-on-error for per-step visibility - Add tests for UPDATE_CHECK and FORMAT validation - Update README with new options and sample outputs
1 parent dab544d commit f8ed615

File tree

6 files changed

+809
-85
lines changed

6 files changed

+809
-85
lines changed

.github/workflows/codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "CodeQL"
1+
name: CodeQL
22

33
on:
44
push:

.github/workflows/docker-image.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Docker Image CI
1+
name: Docker Image
22

33
on:
44
push:
@@ -62,6 +62,14 @@ jobs:
6262
type=semver,pattern={{major}}
6363
type=ref,event=pr
6464
type=raw,value=latest,enable={{is_default_branch}}
65+
- name: Determine version
66+
id: version
67+
run: |
68+
if [[ "${{ github.ref }}" == refs/tags/* ]]; then
69+
echo "version=${{ github.ref_name }}" >> $GITHUB_OUTPUT
70+
else
71+
echo "version=${{ github.sha }}" >> $GITHUB_OUTPUT
72+
fi
6573
- name: Build and push Docker image
6674
uses: docker/build-push-action@v5
6775
with:
@@ -73,6 +81,8 @@ jobs:
7381
push: true
7482
tags: ${{ steps.meta.outputs.tags }}
7583
labels: ${{ steps.meta.outputs.labels }}
84+
build-args: |
85+
VERSION=${{ steps.version.outputs.version }}
7686
- name: Docker Scout
7787
id: docker-scout
7888
if: ${{ github.event_name == 'pull_request' }}

0 commit comments

Comments
 (0)