From de1f003e57253e241eb1ac6150ac6d66d8351a10 Mon Sep 17 00:00:00 2001 From: Selim Date: Wed, 26 Aug 2026 21:55:48 +0300 Subject: [PATCH 1/2] ci: add CodeSnip GitHub Actions pipeline --- .github/workflows/ci.yml | 60 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..e9efc6b --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,60 @@ +name: CodeSnip CI + +on: + push: + pull_request: + +permissions: + contents: read + +jobs: + validate: + name: Validate project + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: npm + + - name: Install dependencies + run: npm ci + + - name: Validate package.json + run: node -e "const p=require('./package.json'); if (!p.name || !p.version || !p.main) process.exit(1); console.log('package.json OK')" + + - name: Check JavaScript syntax + run: node --check main.js && node --check renderer.js + + build: + name: Build Windows app + runs-on: windows-latest + needs: validate + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: npm + + - name: Install dependencies + run: npm ci + + - name: Build portable Windows app + run: npm run dist + + - name: Upload build artifact + uses: actions/upload-artifact@v4 + with: + name: CodeSnip-Windows + path: dist/*.exe + if-no-files-found: error From 5440f8a658d5249376dfb9cbc561e28499ce0bb0 Mon Sep 17 00:00:00 2001 From: Selim Date: Wed, 26 Aug 2026 22:04:16 +0300 Subject: [PATCH 2/2] ci: trigger pipeline validation --- ci-test.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 ci-test.txt diff --git a/ci-test.txt b/ci-test.txt new file mode 100644 index 0000000..4b9a94c --- /dev/null +++ b/ci-test.txt @@ -0,0 +1 @@ +CodeSnip CI validation trigger