Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 35 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,21 @@ jobs:
if_merged:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
outputs:
release_tag: ${{ steps.set_tag.outputs.release_tag }}
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set release tag with timestamp
id: set_tag
run: |
# Generate ISO8601-style timestamp with milliseconds
# Format: YYYY_MM_DD_HHMMSSmmm (e.g., 2025_12_08_123052345)
TIMESTAMP=$(date -u +'%Y_%m_%d_%H%M%S%3N')
echo "release_tag=${TIMESTAMP}" >> $GITHUB_OUTPUT
echo "Release tag: ${TIMESTAMP}"

- name: Install Go
uses: actions/setup-go@v4
with:
Expand All @@ -32,4 +43,27 @@ jobs:
go install github.com/swaggo/swag/cmd/swag@latest

- name: Build
run: make build
run: make build

- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
tag_name: release_${{ steps.set_tag.outputs.release_tag }}
name: Release ${{ steps.set_tag.outputs.release_tag }}
body: |
## Docker Images
All services tagged with: `${{ steps.set_tag.outputs.release_tag }}`

### Services
- apigw_${{ steps.set_tag.outputs.release_tag }}
- verifier_${{ steps.set_tag.outputs.release_tag }}
- registry_${{ steps.set_tag.outputs.release_tag }}
- persistent_${{ steps.set_tag.outputs.release_tag }}
- mockas_${{ steps.set_tag.outputs.release_tag }}
- issuer_${{ steps.set_tag.outputs.release_tag }}
- ui_${{ steps.set_tag.outputs.release_tag }}
- verifier-proxy_${{ steps.set_tag.outputs.release_tag }}
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
48 changes: 46 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,39 @@ pki:
cd pki/; ./create_pki.sh
cd developer_tools/; ./gen_ec_sign_key.sh; ./gen_rsa_sign_key.sh

test: test-verifier
test: test-apigw test-issuer test-mockas test-persistent test-registry test-ui test-verifier test-verifier-proxy

test-apigw:
$(info Testing apigw)
go test -v ./cmd/apigw/... ./internal/apigw/...

test-issuer:
$(info Testing issuer)
go test -v ./cmd/issuer/... ./internal/issuer/...

test-mockas:
$(info Testing mockas)
go test -v ./cmd/mockas/... ./internal/mockas/...

test-persistent:
$(info Testing persistent)
go test -v ./cmd/persistent/... ./internal/persistent/...

test-registry:
$(info Testing registry)
go test -v ./cmd/registry/... ./internal/registry/...

test-ui:
$(info Testing ui)
go test -v ./cmd/ui/... ./internal/ui/...

test-verifier:
$(info Testing verifier)
go test -v ./cmd/verifier
go test -v ./cmd/verifier/... ./internal/verifier/...

test-verifier-proxy:
$(info Testing verifier-proxy)
go test -v ./cmd/verifier-proxy/... ./internal/verifier_proxy/...

# W3C VC 2.0 Test Suite targets
create-w3c-test-suite:
Expand Down Expand Up @@ -428,6 +456,8 @@ vscode:
plantuml \
docker.io \
docker-compose
$(info Install act for local GitHub Actions testing)
curl -sfL https://raw.githubusercontent.com/nektos/act/master/install.sh | sudo bash -s -- -b /usr/local/bin
$(info Install go packages)
go install github.com/swaggo/swag/cmd/swag@latest && \
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest && \
Expand All @@ -454,3 +484,17 @@ w3c-test: build-vc20-test-server
@echo "Summary:"
@grep "✓" /tmp/w3c-test.log | wc -l | tr -d '\n' && echo " passing tests"
@grep "❌" /tmp/w3c-test.log | wc -l | tr -d '\n' && echo " failing tests"

test-workflows:
$(info Testing all GitHub Actions workflows locally with act)
@echo '{"action": "closed", "pull_request": {"merged": true}}' > /tmp/act-pr-event.json
act -l
@echo "--- Running pull_request workflow (dry run) ---"
act pull_request -e /tmp/act-pr-event.json -n
@rm -f /tmp/act-pr-event.json

test-workflows-run:
$(info Running all GitHub Actions workflows locally with act)
@echo '{"action": "closed", "pull_request": {"merged": true}}' > /tmp/act-pr-event.json
act pull_request -e /tmp/act-pr-event.json
@rm -f /tmp/act-pr-event.json
Loading
Loading