42 lines
1.2 KiB
YAML
42 lines
1.2 KiB
YAML
name: crypto-sim-smoke
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
paths:
|
|
- "ops/crypto/sim-crypto-service/**"
|
|
- "ops/crypto/sim-crypto-smoke/**"
|
|
- "scripts/crypto/run-sim-smoke.ps1"
|
|
- "docs/security/crypto-simulation-services.md"
|
|
- ".gitea/workflows/crypto-sim-smoke.yml"
|
|
|
|
jobs:
|
|
sim-smoke:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup .NET
|
|
uses: actions/setup-dotnet@v4
|
|
with:
|
|
dotnet-version: "10.0.x"
|
|
|
|
- name: Build sim service and smoke harness
|
|
run: |
|
|
dotnet build ops/crypto/sim-crypto-service/SimCryptoService.csproj -c Release
|
|
dotnet build ops/crypto/sim-crypto-smoke/SimCryptoSmoke.csproj -c Release
|
|
|
|
- name: Run smoke (sim profile: sm)
|
|
env:
|
|
ASPNETCORE_URLS: http://localhost:5000
|
|
STELLAOPS_CRYPTO_SIM_URL: http://localhost:5000
|
|
SIM_PROFILE: sm
|
|
run: |
|
|
set -euo pipefail
|
|
dotnet run --project ops/crypto/sim-crypto-service/SimCryptoService.csproj --no-build -c Release &
|
|
service_pid=$!
|
|
sleep 6
|
|
dotnet run --project ops/crypto/sim-crypto-smoke/SimCryptoSmoke.csproj --no-build -c Release
|
|
kill $service_pid
|