Initial commit

This commit is contained in:
Robert Nasarek 2026-06-25 09:11:23 +02:00
commit 05c65aad4d
155 changed files with 93617 additions and 0 deletions

38
.github/workflows/build-release.yml vendored Normal file
View file

@ -0,0 +1,38 @@
name: Build and release library
on:
push:
tags:
- 'v*'
workflow_dispatch: {}
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup Node
uses: actions/setup-node@v6
with:
node-version: '24'
- name: Install deps
run: npm ci
- name: Build library
run: npm run build:library
- name: Pack library zip
run: node ./scripts/pack-library.js
- name: Create release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.ref_name }}
name: Release ${{ github.ref_name }}
files: ./dfg-3dviewer-library.zip

38
.github/workflows/playwright.yml vendored Normal file
View file

@ -0,0 +1,38 @@
name: Playwright Tests
on: [push, pull_request]
jobs:
e2e:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v6
- name: Setup Node
uses: actions/setup-node@v6
with:
node-version: 24
- name: Install dependencies
run: npm ci
- name: Install Playwright browsers
run: npx playwright install --with-deps chromium
- name: Build test dist
run: npm run build:test
- name: Run Playwright tests
run: npx playwright test
env:
CI: true
- name: Upload Playwright report
if: always()
uses: actions/upload-artifact@v6
with:
name: playwright-report
path: playwright-report/
retention-days: 30