Skip to content

Commit 7b0916f

Browse files
committed
AP-25351: Add GitHub configuration files
* `workflows/ci.yml` - lint+test+build JS code + check Python format in CI * `workflows/copilot-setup-steps.yml` - setup Copilot agent dev environment * `dependabot.yml` - config for bumping dependencies * `CODEOWNERS` - setting team Rakete as the code owners AP-25351 (Add GitHub Actions for repositories containing scripting editors)
1 parent b9fe045 commit 7b0916f

File tree

4 files changed

+119
-0
lines changed

4 files changed

+119
-0
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @knime/rakete

.github/dependabot.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
2+
3+
version: 2
4+
updates:
5+
- package-ecosystem: "npm"
6+
directory: "/org.knime.python3.scripting.nodes/js-src"
7+
schedule:
8+
interval: "weekly"
9+
day: "sunday"
10+
time: "18:00"
11+
cooldown:
12+
default-days: 5
13+
exclude:
14+
- "@knime/*"
15+
groups:
16+
knimeKds:
17+
patterns:
18+
- "@knime/kds-*"
19+
vueuse:
20+
patterns:
21+
- "*vueuse*"
22+
vitest:
23+
patterns:
24+
- "*vitest*"
25+
26+
- package-ecosystem: "github-actions"
27+
directory: "/"
28+
schedule:
29+
interval: "weekly"
30+
day: "sunday"
31+
time: "18:00"
32+
cooldown:
33+
default-days: 5

.github/workflows/ci.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- master
8+
- "releases/**"
9+
10+
jobs:
11+
python-format:
12+
name: Python format
13+
permissions:
14+
contents: read
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v5
18+
- uses: astral-sh/ruff-action@v3
19+
with:
20+
args: "format --check --diff"
21+
22+
js-lint-test-build:
23+
name: JS lint, tests, and build
24+
permissions:
25+
contents: read
26+
runs-on: ubuntu-latest
27+
defaults:
28+
run:
29+
working-directory: org.knime.python3.scripting.nodes/js-src
30+
steps:
31+
- uses: actions/checkout@v5
32+
- name: Install Node.js
33+
uses: actions/setup-node@v6
34+
with:
35+
node-version: "22.11.0"
36+
cache: "npm"
37+
cache-dependency-path: org.knime.python3.scripting.nodes/js-src/package-lock.json
38+
- name: Install dependencies
39+
run: npm ci
40+
- name: Type check
41+
run: npm run type-check
42+
- name: Lint and format check
43+
run: npm run ci:lint-format
44+
- name: Run coverage
45+
run: npm run coverage
46+
- name: Audit
47+
run: npm run audit
48+
- name: Build
49+
run: npm run build
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: "Copilot Setup Steps"
2+
3+
# Automatically run the setup steps when they are changed to allow for easy validation, and
4+
# allow manual testing through the repository's "Actions" tab
5+
on:
6+
workflow_dispatch:
7+
push:
8+
paths:
9+
- .github/workflows/copilot-setup-steps.yml
10+
pull_request:
11+
paths:
12+
- .github/workflows/copilot-setup-steps.yml
13+
14+
jobs:
15+
# The job MUST be called `copilot-setup-steps` or it will not be picked up by Copilot.
16+
copilot-setup-steps:
17+
runs-on: ubuntu-latest
18+
permissions:
19+
contents: read
20+
defaults:
21+
run:
22+
working-directory: org.knime.python3.scripting.nodes/js-src
23+
24+
steps:
25+
- name: Checkout code
26+
uses: actions/checkout@v5
27+
28+
- name: Install Node.js
29+
uses: actions/setup-node@v6
30+
with:
31+
node-version: "22.11.0"
32+
cache: "npm"
33+
cache-dependency-path: org.knime.python3.scripting.nodes/js-src/package-lock.json
34+
35+
- name: Install dependencies
36+
run: npm ci

0 commit comments

Comments
 (0)