chore: update ci workflow
📊 Benchmark the Runtime / release (pull_request) Successful in 2m24s
🚀 Lint & Test & Deploy / release (pull_request) Failing after 50s

This commit is contained in:
2026-05-03 16:44:02 +02:00
parent 01f58377c2
commit 7e432e9033
2 changed files with 37 additions and 8 deletions
+35 -7
View File
@@ -14,7 +14,7 @@ env:
jobs: jobs:
release: release:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: git.max-richter.dev/max/nodarium-ci:bce06da456e3c008851ac006033cfff256015a47 container: git.max-richter.dev/max/nodarium-ci:a56e8f445edb6064ae7a7b3b783fb7445f1b4e69
steps: steps:
- name: 📑 Checkout Code - name: 📑 Checkout Code
@@ -51,9 +51,37 @@ jobs:
- name: 🏃 Execute Runtime - name: 🏃 Execute Runtime
run: pnpm run --filter @nodarium/app bench run: pnpm run --filter @nodarium/app bench
- name: 📤 Upload Benchmark Results - name: 🔑 Setup SSH key
uses: actions/upload-artifact@v3 run: |
with: mkdir -p ~/.ssh
name: benchmark-data echo "${{ secrets.GIT_SSH_PRIVATE_KEY }}" > ~/.ssh/id_ed25519
path: app/benchmark/out/ chmod 600 ~/.ssh/id_ed25519
compression: 9 ssh-keyscan -p 2222 -H git.max-richter.dev >> ~/.ssh/known_hosts
- name: 📤 Push Results
env:
BENCH_REPO: "git@git.max-richter.dev:max/nodarium-benchmarks.git"
run: |
git config --global user.name "nodarium-bot"
git config --global user.email "nodarium-bot@max-richter.dev"
# 2. Clone the benchmarks repo into a temp folder
git config --global core.sshCommand "ssh -p 2222 -i ~/.ssh/id_ed25519 -o IdentitiesOnly=yes"
git clone git@git.max-richter.dev:max/nodarium-benchmarks.git target_bench_repo
# 3. Create a directory structure based on the branch
# This allows the UI to "switch between branches"
SAFE_PR_NAME=$(printf "%s" "$GITHUB_HEAD_REF" | tr '/' '-')
DEST_DIR="target_bench_repo/data/$SAFE_PR_NAME/$(date +%s)"
mkdir -p "$DEST_DIR"
# 4. Copy the new results
# Assuming your bench tool outputs a file named 'results.json'
cp app/benchmark/out/*.json "$DEST_DIR/"
# 5. Commit and Push
cd target_bench_repo
git add .
git commit -m "Update benchmarks for $SAFE_PR_NAME: ${{ github.sha }}"
git push origin main
+2 -1
View File
@@ -15,7 +15,7 @@ env:
jobs: jobs:
release: release:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: git.max-richter.dev/max/nodarium-ci:bce06da456e3c008851ac006033cfff256015a47 container: git.max-richter.dev/max/nodarium-ci:a56e8f445edb6064ae7a7b3b783fb7445f1b4e69
steps: steps:
- name: 📑 Checkout Code - name: 📑 Checkout Code
@@ -81,3 +81,4 @@ jobs:
SSH_HOST: ${{ vars.SSH_HOST }} SSH_HOST: ${{ vars.SSH_HOST }}
SSH_PORT: ${{ vars.SSH_PORT }} SSH_PORT: ${{ vars.SSH_PORT }}
SSH_USER: ${{ vars.SSH_USER }} SSH_USER: ${{ vars.SSH_USER }}