Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
50 changes: 0 additions & 50 deletions .github/workflows/ci.yml

This file was deleted.

141 changes: 141 additions & 0 deletions .github/workflows/js-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
name: JS CI

on:
pull_request:
paths:
- "org.knime.python3.scripting.nodes/js-src/**"
- ".github/workflows/js-ci.yml"
push:
branches:
- master
- "releases/**"

jobs:
install:
name: Install dependencies
permissions:
contents: read
runs-on: ubuntu-latest
defaults:
run:
working-directory: org.knime.python3.scripting.nodes/js-src
steps:
- uses: actions/checkout@v5
- name: Install Node.js
uses: actions/setup-node@v6
with:
node-version-file: org.knime.python3.scripting.nodes/js-src/package.json
cache: npm
cache-dependency-path: org.knime.python3.scripting.nodes/js-src/package-lock.json
- name: Install dependencies
run: npm ci

type-check:
name: Type check
needs: install
permissions:
contents: read
runs-on: ubuntu-latest
defaults:
run:
working-directory: org.knime.python3.scripting.nodes/js-src
steps:
- uses: actions/checkout@v5
- name: Install Node.js
uses: actions/setup-node@v6
with:
node-version-file: org.knime.python3.scripting.nodes/js-src/package.json
cache: npm
cache-dependency-path: org.knime.python3.scripting.nodes/js-src/package-lock.json
- name: Install dependencies
run: npm ci
- name: Type check
run: npm run type-check

lint:
name: Lint and format check
needs: install
permissions:
contents: read
runs-on: ubuntu-latest
defaults:
run:
working-directory: org.knime.python3.scripting.nodes/js-src
steps:
- uses: actions/checkout@v5
- name: Install Node.js
uses: actions/setup-node@v6
with:
node-version-file: org.knime.python3.scripting.nodes/js-src/package.json
cache: npm
cache-dependency-path: org.knime.python3.scripting.nodes/js-src/package-lock.json
- name: Install dependencies
run: npm ci
- name: Lint and format check
run: npm run ci:lint-format

unit-tests:
name: Unit tests
needs: install
permissions:
contents: read
runs-on: ubuntu-latest
defaults:
run:
working-directory: org.knime.python3.scripting.nodes/js-src
steps:
- uses: actions/checkout@v5
- name: Install Node.js
uses: actions/setup-node@v6
with:
node-version-file: org.knime.python3.scripting.nodes/js-src/package.json
cache: npm
cache-dependency-path: org.knime.python3.scripting.nodes/js-src/package-lock.json
- name: Install dependencies
run: npm ci
- name: Run coverage
run: npm run coverage

audit:
name: Audit
needs: install
permissions:
contents: read
runs-on: ubuntu-latest
defaults:
run:
working-directory: org.knime.python3.scripting.nodes/js-src
steps:
- uses: actions/checkout@v5
- name: Install Node.js
uses: actions/setup-node@v6
with:
node-version-file: org.knime.python3.scripting.nodes/js-src/package.json
cache: npm
cache-dependency-path: org.knime.python3.scripting.nodes/js-src/package-lock.json
- name: Install dependencies
run: npm ci
- name: Audit
run: npm run audit

build:
name: Build
needs: install
permissions:
contents: read
runs-on: ubuntu-latest
defaults:
run:
working-directory: org.knime.python3.scripting.nodes/js-src
steps:
- uses: actions/checkout@v5
- name: Install Node.js
uses: actions/setup-node@v6
with:
node-version-file: org.knime.python3.scripting.nodes/js-src/package.json
cache: npm
cache-dependency-path: org.knime.python3.scripting.nodes/js-src/package-lock.json
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
31 changes: 31 additions & 0 deletions .github/workflows/python-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Python CI

on:
pull_request:
paths:
- "**.py"
- "pixi.toml"
- "ruff.toml"
- ".github/workflows/python-ci.yml"
push:
branches:
- master
- "releases/**"
paths:
- "**.py"
- "pixi.toml"
- "ruff.toml"
- ".github/workflows/python-ci.yml"

jobs:
python-format:
name: Format
permissions:
contents: read
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: prefix-dev/setup-pixi@v0.9.3
with:
cache: true
- run: pixi run format --check --diff
Loading