mirror of
https://github.com/The-Low-Code-Foundation/OpenNoodl.git
synced 2026-01-11 23:02:56 +01:00
Initial commit
Co-Authored-By: Eric Tuvesson <eric.tuvesson@gmail.com> Co-Authored-By: mikaeltellhed <2311083+mikaeltellhed@users.noreply.github.com> Co-Authored-By: kotte <14197736+mrtamagotchi@users.noreply.github.com> Co-Authored-By: Anders Larsson <64838990+anders-topp@users.noreply.github.com> Co-Authored-By: Johan <4934465+joolsus@users.noreply.github.com> Co-Authored-By: Tore Knudsen <18231882+torekndsn@users.noreply.github.com> Co-Authored-By: victoratndl <99176179+victoratndl@users.noreply.github.com>
This commit is contained in:
76
.github/workflows/build-noodl-editor.yml
vendored
Normal file
76
.github/workflows/build-noodl-editor.yml
vendored
Normal file
@@ -0,0 +1,76 @@
|
||||
name: Build noodl-editor
|
||||
|
||||
on:
|
||||
# Allows you to run this workflow manually from the Actions tab
|
||||
workflow_dispatch:
|
||||
|
||||
# Allows you to run this workflow from another workflow
|
||||
workflow_call:
|
||||
|
||||
# release:
|
||||
# types: [created]
|
||||
|
||||
jobs:
|
||||
build_noodl_editor:
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
- node: 16
|
||||
os: windows-latest
|
||||
platform: win32-x64
|
||||
- node: 16
|
||||
os: macos-latest
|
||||
platform: darwin-arm64
|
||||
- node: 16
|
||||
os: macos-latest
|
||||
platform: darwin-x64
|
||||
# - node: 16
|
||||
# os: ubuntu-latest
|
||||
# platform: linux-x64
|
||||
|
||||
steps:
|
||||
- if: ${{ matrix.platform == 'darwin-arm64' }}
|
||||
name: Setup
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.11'
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup node env 🏗
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: ${{ matrix.node }}
|
||||
|
||||
# - name: Clean up
|
||||
# continue-on-error: true
|
||||
# run: |
|
||||
# npx rimraf node_modules
|
||||
# npx lerna clean --yes
|
||||
|
||||
- name: Install dependencies 🏗
|
||||
run: npm install
|
||||
|
||||
- name: Build Noodl Viewer (build bundles and copy them to Noodl Editor)
|
||||
run: npm run build:editor:_viewer
|
||||
env:
|
||||
WORKSPACE_PATH: .
|
||||
|
||||
- name: Build Noodl Editor (build bundles etc and signing)
|
||||
run: npm run build:editor:_editor
|
||||
env:
|
||||
WORKSPACE_PATH: .
|
||||
TARGET_PLATFORM: ${{ matrix.platform }}
|
||||
|
||||
- run: npm run build:editor:pack
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: noodl-editor-${{ matrix.platform }}-${{ github.head_ref }}-${{ github.sha }}
|
||||
path: publish
|
||||
retention-days: "12"
|
||||
41
.github/workflows/publish-cloud-runtime.yml
vendored
Normal file
41
.github/workflows/publish-cloud-runtime.yml
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
name: Publish cloud-runtime
|
||||
|
||||
on:
|
||||
# Allows you to run this workflow manually from the Actions tab
|
||||
workflow_dispatch:
|
||||
|
||||
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
|
||||
concurrency:
|
||||
group: "publish-cloud-runtime"
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Setup node env 🏗
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 16
|
||||
registry-url: 'https://registry.npmjs.org'
|
||||
|
||||
- name: Install dependencies 🏗
|
||||
run: npm install
|
||||
|
||||
- name: Build
|
||||
run: npm run build:cloud-runtime
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-pages-artifact@v2
|
||||
with:
|
||||
name: "noodl-cloud-runtime"
|
||||
path: "packages/noodl-viewer-cloud/publish"
|
||||
retention-days: "12"
|
||||
|
||||
- name: Publish
|
||||
run: npm publish --access=public
|
||||
working-directory: packages/noodl-viewer-cloud/publish
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
32
.github/workflows/test-noodl-editor.yml
vendored
Normal file
32
.github/workflows/test-noodl-editor.yml
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
name: Test noodl-editor
|
||||
|
||||
on:
|
||||
# Allows you to run this workflow manually from the Actions tab
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
test_platform:
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
- node: 16
|
||||
os: ubuntu-latest
|
||||
platform: linux-x64
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Setup node env 🏗
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 16
|
||||
|
||||
- name: Install dependencies 🏗
|
||||
run: npm install
|
||||
|
||||
- name: Run tests headless
|
||||
run: /usr/bin/xvfb-run --auto-servernum -s "-screen 0 1280x1024x24" npm run test:editor
|
||||
41
.github/workflows/test-platform-node.yml
vendored
Normal file
41
.github/workflows/test-platform-node.yml
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
name: Test noodl/platform-node
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: ["main"]
|
||||
paths:
|
||||
- 'packages/noodl-platform/**'
|
||||
- 'packages/noodl-platform-node/**'
|
||||
- 'packages/noodl-platform-electron/**'
|
||||
|
||||
pull_request:
|
||||
paths:
|
||||
- 'packages/noodl-platform/**'
|
||||
- 'packages/noodl-platform-node/**'
|
||||
- 'packages/noodl-platform-electron/**'
|
||||
|
||||
# Allows you to run this workflow manually from the Actions tab
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
test_platform:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Setup node env 🏗
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 16
|
||||
|
||||
- name: Install dependencies 🏗
|
||||
run: npm install
|
||||
|
||||
- name: Run tests
|
||||
run: npx lerna exec --scope @noodl/platform-node -- npm run test
|
||||
|
||||
- name: Print coverage
|
||||
run: npx lerna exec --scope @noodl/platform-node -- npm run test:coverage
|
||||
Reference in New Issue
Block a user