From 3343bd32c1ea76da040b472154bb48d3f5b0cdad Mon Sep 17 00:00:00 2001 From: YUSIF AMIRASLANOV <144380926+SMSDAO@users.noreply.github.com> Date: Mon, 25 May 2026 19:24:43 +0800 Subject: [PATCH 1/4] chore: Trigger swarm workflow on dev branch --- DEV.md | 2 + README.md | 121 +++--------------------------------------------------- 2 files changed, 8 insertions(+), 115 deletions(-) create mode 100644 DEV.md diff --git a/DEV.md b/DEV.md new file mode 100644 index 0000000..4af70e9 --- /dev/null +++ b/DEV.md @@ -0,0 +1,2 @@ +ο»Ώ# Dev Branch +This branch tests multiple Node.js versions (18-24) with WASM support. diff --git a/README.md b/README.md index 7febc13..f9b465e 100644 --- a/README.md +++ b/README.md @@ -5,120 +5,11 @@ ## 🎯 Overview -Atomic Node provides **self-healing CI/CD workflows** for the SolanaRemix organization. It ensures deterministic builds, automatic entropy cleanup, and multi-version Node.js compatibility. +Atomic Node provides **self-healing CI/CD workflows** for the SolanaRemix organization. -## πŸ“‹ Features +| Workflow | Status | Node Versions | Last Run | +|----------|--------|---------------|-----------| +| **Atomic Prod** | [![Atomic Node Repair](https://github.com/SolanaRemix/node/actions/workflows/atomic-prod.yml/badge.svg)](https://github.com/SolanaRemix/node/actions/workflows/atomic-prod.yml) | 20.x, 22.x | βœ… Passing | +| **Swarm Dev** | [![Swarm WASM Repair](https://github.com/SolanaRemix/node/actions/workflows/swarm-dev.yml/badge.svg)](https://github.com/SolanaRemix/node/actions/workflows/swarm-dev.yml) | 18.x-24.x | πŸ”„ Pending first run | -### Production Workflow (Atomic Node Repair) -- βœ… Node.js 20.x + 22.x support -- 🧹 Automatic entropy cleanup -- πŸ”’ Frozen lockfile enforcement -- πŸ“– Auto-documentation refresh -- πŸ“ Changelog management - -### Development Workflow (Swarm WASM Repair) -- 🌐 Node.js 18.x β†’ 24.x matrix testing -- πŸ¦€ WASM module validation -- πŸ”’ TypeScript strict mode -- πŸ’¬ PR comment commands - -## πŸš€ Quick Start - -### Local Development (Windows PowerShell) - -```powershell -# Run local tests -.\local-test.ps1 - -# Or step by step -pnpm install # Install dependencies -pnpm run typecheck # Type check -pnpm run build # Build project -pnpm run test # Run tests -pnpm run start # Run the application -Local Development (Linux/Mac) -bash -# Run local tests -chmod +x local-test.sh -./local-test.sh - -# Or step by step -pnpm install -pnpm run typecheck -pnpm run build -pnpm run test -pnpm start -🎯 Emoji Commands (PRs & Issues) -CommandAction -πŸš€ @repairFull atomic repair -🧹 @cleanClean entropy -πŸ”’ @lockFrozen lockfile install -πŸ“¦ @buildVerify build -βœ… @testRun test suite -πŸ“– @docsRefresh docs -πŸ“ @changelogUpdate changelog -πŸ”§ CI/CD Workflows -Atomic Production (.github/workflows/atomic-prod.yml) -Runs on: main branch, daily schedule - -Tests: Node 20.x, 22.x - -Actions: Clean β†’ Install β†’ Build β†’ Test β†’ Docs β†’ Changelog - -Swarm Development (.github/workflows/swarm-dev.yml) -Runs on: dev, feature/* branches - -Tests: Node 18.x β†’ 24.x - -Actions: Multi-version alignment β†’ WASM validation β†’ Build β†’ Test - -πŸ“ Project Structure -text -. -β”œβ”€β”€ .github/ -β”‚ β”œβ”€β”€ workflows/ -β”‚ β”‚ β”œβ”€β”€ atomic-prod.yml # Production CI/CD -β”‚ β”‚ β”œβ”€β”€ swarm-dev.yml # Development CI/CD -β”‚ β”‚ └── emoji-triggers.yml # PR comment commands -β”‚ └── actions/ -β”‚ └── setup-node-pnpm/ # Shared action -β”œβ”€β”€ src/ -β”‚ β”œβ”€β”€ index.ts # Main application -β”‚ └── index.test.ts # Tests -β”œβ”€β”€ dist/ # Compiled output -β”œβ”€β”€ package.json -β”œβ”€β”€ tsconfig.json -└── README.md -πŸ§ͺ Testing Locally -Run the full test suite locally: - -powershell -# Windows PowerShell -.\local-test.ps1 -bash -# Linux/Mac -./local-test.sh -πŸ“Š Status -All workflows are designed to be self-repairing - they will automatically: - -Clean corrupted node_modules - -Regenerate lockfiles if missing - -Fix TypeScript configuration issues - -Update documentation on changes - -🀝 Contributing -Fork the repository - -Create a feature branch (git checkout -b feature/amazing) - -Commit changes (git commit -m 'Add amazing feature') - -Push to branch (git push origin feature/amazing) - -Open a Pull Request - -πŸ“„ License -MIT License - see LICENSE file for details +βœ… **Status: FULLY OPERATIONAL** - Both workflows configured From 43ade395f60b950633bf05b7903f3688cb394994 Mon Sep 17 00:00:00 2001 From: YUSIF AMIRASLANOV <144380926+SMSDAO@users.noreply.github.com> Date: Mon, 25 May 2026 21:01:46 +0800 Subject: [PATCH 2/4] ci: Add npm publishing workflow --- .github/workflows/npm-publish.yml | 33 +++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/npm-publish.yml diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml new file mode 100644 index 0000000..3092dfa --- /dev/null +++ b/.github/workflows/npm-publish.yml @@ -0,0 +1,33 @@ +ο»Ώname: Publish to npm + +on: + release: + types: [created] + workflow_dispatch: + inputs: + version: + description: 'Version to publish' + required: false + default: '1.0.0' + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-node@v4 + with: + node-version: '20.x' + registry-url: 'https://registry.npmjs.org' + + - name: Install dependencies + run: npm ci + + - name: Build + run: npm run build + + - name: Publish to npm + run: npm publish --access public + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} From c46daa22ad3a95c6a33ae615c09f6d0b91a66f60 Mon Sep 17 00:00:00 2001 From: YUSIF AMIRASLANOV <144380926+SMSDAO@users.noreply.github.com> Date: Mon, 25 May 2026 22:17:16 +0800 Subject: [PATCH 3/4] test: Trigger swarm workflow --- DEV.md | Bin 88 -> 152 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/DEV.md b/DEV.md index 4af70e92e6ad7538a84bbc0fa07789fb3346b111..5b518ff652f95ff05b274059fe2212731dcf8ff6 100644 GIT binary patch delta 70 zcma!;!8jqpL772;!G$4}p$tfu0O?{NslZ^sV9KD+U<4%%fGjhhs1XoaF&HwKgGo~c IUIs1(0GbI2O#lD@ delta 5 McmbQi7%?FN00n^o+5i9m From 0012a399fd0c9bb0a557d6f3a3f5fe26887ee947 Mon Sep 17 00:00:00 2001 From: YUSIF AMIRASLANOV <144380926+SMSDAO@users.noreply.github.com> Date: Mon, 25 May 2026 22:18:20 +0800 Subject: [PATCH 4/4] test: PR for emoji commands --- EMOJI-TEST.md | Bin 0 -> 58 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 EMOJI-TEST.md diff --git a/EMOJI-TEST.md b/EMOJI-TEST.md new file mode 100644 index 0000000000000000000000000000000000000000..9d652cbbabe4844efb139891306752e4855c68a0 GIT binary patch literal 58 zcmWN_VF~~c7=z*Ww{izZl3d{