Skip to content

Commit f6e36f0

Browse files
committed
Add Woodpecker ci and Dependabot for GitHub
Ticket: https://phabricator.wikimedia.org/T386698
1 parent 10e200e commit f6e36f0

3 files changed

Lines changed: 54 additions & 0 deletions

File tree

.github/CODEOWNERS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# This marks the default owner group of all files in this repository
2+
* @wmde/funtech-core

.github/dependabot.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Please see the documentation for all configuration options:
2+
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
3+
4+
version: 2
5+
updates:
6+
# look for major+minor dependency updates on a weekly basis
7+
- package-ecosystem: "npm" # See documentation for possible values
8+
directory: "/" # Location of package manifests
9+
10+
# this line is needed as a workaround to have two groups of updates for the same
11+
# package ecosystem. See https://github.com/dependabot/dependabot-core/issues/1778
12+
# for the feature request to have a dependabot group for each semver type
13+
target-branch: main
14+
15+
schedule:
16+
interval: "weekly"
17+
groups:
18+
minor-version-updates:
19+
update-types:
20+
- minor
21+
ignore:
22+
- dependency-name: "*"
23+
update-types:
24+
- "version-update:semver-patch"
25+
26+
# bundle patch updates together on a monthly basis
27+
- package-ecosystem: "npm" # See documentation for possible values
28+
directory: "/" # Location of package manifests
29+
schedule:
30+
interval: "monthly"
31+
day: "tuesday"
32+
groups:
33+
patch-updates:
34+
update-types:
35+
- patch
36+
ignore:
37+
- dependency-name: "*"
38+
update-types:
39+
- "version-update:semver-minor"
40+
- "version-update:semver-major"

.woodpecker/ci.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
steps:
2+
- name: build
3+
when:
4+
- event: [ push, pull_request, cron, manual ]
5+
branch:
6+
exclude: [ dependabot/* ]
7+
image: node:22-alpine
8+
commands:
9+
- npm ci
10+
- npm run lint
11+
- npm run test:unit
12+
- npm run build

0 commit comments

Comments
 (0)