Skip to content
Open
Show file tree
Hide file tree
Changes from 5 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
19 changes: 12 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,25 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: '24'
cache: 'npm'
node-version: "24"

- name: Install pnpm
run: npm i -g pnpm

- name: Install dependencies
run: npm install
run: pnpm install --frozen-lockfile

- name: Approve builds
run: pnpm approve-builds

- name: Type check
run: npx tsc --noEmit
run: pnpm exec tsc --noEmit

- name: Lint check
run: npm run check
run: pnpm run check

- name: Build
run: npm run build
run: pnpm run build

- name: Security audit
run: npm audit --audit-level=high --omit=dev
run: pnpm audit --audit-level=high --prod
24 changes: 14 additions & 10 deletions .github/workflows/electron-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,15 @@ jobs:
uses: actions/setup-node@v6
with:
node-version: 24
cache: "npm"

- name: Install pnpm
run: npm i -g pnpm

- name: Install dependencies
run: npm install
run: pnpm install --frozen-lockfile

- name: Build and publish
run: npm run dist:${{ matrix.platform }}
run: pnpm run dist:${{ matrix.platform }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand All @@ -55,14 +57,16 @@ jobs:
uses: actions/setup-node@v6
with:
node-version: 24
cache: "npm"

- name: Install pnpm
run: npm i -g pnpm

- name: Install dependencies
run: npm install
run: pnpm install --frozen-lockfile

# Build WITHOUT publishing
- name: Build Windows app
run: npm run dist:win:build
run: pnpm run dist:win:build
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand All @@ -78,10 +82,10 @@ jobs:
uses: signpath/github-action-submit-signing-request@v2
with:
api-token: ${{ secrets.SIGNPATH_API_TOKEN }}
organization-id: '880a211d-2cd3-4e7b-8d04-3d1f8eb39df5'
project-slug: 'next-ai-draw-io'
signing-policy-slug: 'test-signing'
artifact-configuration-slug: 'windows-exe'
organization-id: "880a211d-2cd3-4e7b-8d04-3d1f8eb39df5"
project-slug: "next-ai-draw-io"
signing-policy-slug: "test-signing"
artifact-configuration-slug: "windows-exe"
github-artifact-id: ${{ steps.upload-unsigned.outputs.artifact-id }}
wait-for-completion: true
output-artifact-directory: release-signed
Expand Down
22 changes: 13 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,18 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"

- name: Install pnpm
run: npm i -g pnpm

- name: Install dependencies
run: npm ci
run: pnpm install --frozen-lockfile

- name: Run lint
run: npm run check
run: pnpm run check

- name: Run unit tests
run: npm run test -- --run
run: pnpm run test -- --run

e2e:
name: E2E Tests
Expand All @@ -38,17 +40,19 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"

- name: Install pnpm
run: npm i -g pnpm

- name: Install dependencies
run: npm ci
run: pnpm install --frozen-lockfile

- name: Cache Playwright browsers
uses: actions/cache@v4
id: playwright-cache
with:
path: ~/.cache/ms-playwright
key: playwright-${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
key: playwright-${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}

- name: Install Playwright browsers
if: steps.playwright-cache.outputs.cache-hit != 'true'
Expand All @@ -59,10 +63,10 @@ jobs:
run: npx playwright install-deps chromium

- name: Build app
run: npm run build
run: pnpm run build

- name: Run E2E tests
run: npm run test:e2e
run: pnpm run test:e2e
env:
CI: true

Expand Down
Loading
Loading