Skip to content

feat: nomic embed webgpu architecture #70

feat: nomic embed webgpu architecture

feat: nomic embed webgpu architecture #70

Workflow file for this run

name: Test
on:
pull_request:
branches: [main]
push:
branches: [main, test-release] # Added test-release branch
paths-ignore:
- 'CHANGELOG.md'
- 'package.json'
- 'package-lock.json'
jobs:
unit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20.x"
- name: Generate package-lock.json
run: npm install --package-lock-only
- name: Install dependencies
run: npm ci
- name: Run unit tests
run: npm run unit
integration:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20.x"
- name: Install Vulkan dependencies
run: |
sudo apt-get update
sudo apt-get install -y libvulkan1 mesa-vulkan-drivers vulkan-tools
- name: Generate package-lock.json
run: npm install --package-lock-only
- name: Install dependencies
run: npm ci
- name: Install Playwright Chromium
run: npx playwright install chromium
- name: Run integration tests
run: xvfb-run --auto-servernum npm run integration
- name: Upload test results
if: always()
uses: actions/upload-artifact@v4
with:
name: playwright-report
path: test-results/playwright-report/
retention-days: 30