26 Commits

Author SHA1 Message Date
George Sapkin
a0531c7822 formal: post formality check comments to PRs
Enable posting formality check comments and warn if 'Allow edits and
access to secrets by maintainers' is not checked.

Signed-off-by: George Sapkin <george@sapk.in>
2025-12-15 21:40:40 +01:00
George Sapkin
6b45572ea4 formal: fix permissions
Enable Luci-specific Weblate exclusions.

Signed-off-by: George Sapkin <george@sapk.in>
2025-12-15 14:11:11 +01:00
George Sapkin
1e12651ab4 ci: switch to common formalities workflow
Switch to using the common formalities workflow defined in the
actions-shared-workflows that include luci-specific exceptions.

Fixes: https://github.com/openwrt/luci/issues/7821
Signed-off-by: George Sapkin <george@sapk.in>
2025-11-07 14:13:06 +01:00
Paul Donald
4617b9fd2e github: update workflow actions
checkout to v5
setup-node to v5
peaceiris/actions-gh-pages to v4

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
2025-10-12 18:31:10 +02:00
Yanase Yuki
98e71acd06 ci: lint JSON files using ESLint
Add GitHub Actions CI which lints json files
using official ESLint json plugin.

Signed-off-by: Yanase Yuki <dev@zpc.st>
2025-06-08 20:41:25 +02:00
Daniel Nilsson
22518fa15f ci: account for APK as default on main branch
With APK defaulted on openwrt:main, we should include packages with the
.apk file extension as artifacts. Also default the logging to V=s as
otherwise the APK version check won't be printed to stdout.

Signed-off-by: Daniel Nilsson <dannil+github@protonmail.com>
2024-11-17 09:45:19 +02:00
Daniel Nilsson
69d379af9a ci: upgrade openwrt/gh-action-sdk workflow to v7
With the change of the Docker container not including pre-built
binaries [1], the previous version of the workflow fails as it still
expects those to be present in the upstream container while the new
versions runs a file called setup.sh if present to configure the
container.

By upgrading openwrt/gh-action-sdk workflow to v7, we make sure that
setup.sh is run and configures the container [2].

[1] 9b55784b18
[2] 0c00b28c11

Signed-off-by: Daniel Nilsson <dannil+github@protonmail.com>
2024-11-17 09:45:19 +02:00
Paul Donald
e557e17829 house-keeping: workflow improvements
pass tests when Weblate PR only adds an i18n
2024-02-08 14:30:53 +01:00
Paul Donald
198a2dd20e house-keeping: Enable Code Query Language (CodeQL) scanning
Code quality scanning (for JavaScript, JSON, HTML) for pushes and PRs
to master.

A repo scan takes roughly 4 minutes.

Signed-off-by: Paul Donald <newtwen@gmail.com>
2024-01-31 23:38:41 +01:00
Paul Donald
d88d40c24d house-keeping: Enable jsdoc workflow to run in forks also. 2024-01-31 23:38:41 +01:00
Paul Donald
3e0f119270 house-keeping: migrate workflows from GitHub deprecated node16 -> node20
GitHub currently warns with:

Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
2024-01-31 03:59:40 +01:00
Paul Donald
07e025664b house-keeping: migrate workflows from GitHub deprecated node16 -> node20
GitHub currently warns with:
Annotations
1 warning
build

Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
2024-01-31 03:57:34 +01:00
Paul Donald
89da922c0a house-keeping: jsdoc migrate from GitHub deprecated node16 -> node20
GitHub currently warns with:
Annotations
1 warning
build

Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
2024-01-30 17:09:09 +01:00
Paul Donald
a1e8af2a95 house-keeping: jsdoc reduce GitHub workload: run only when docs change
this will prevent a large amount of 

deploy: <sha>

to openwrt/gh-pages branches when nothing there has changed

Note: it may not be a bad idea to have docs compile at every commit,
since docs do not change *that* often, and some action or process that
breaks is likely noticed sooner if docs that compile continuously
trigger any broken processes or workflows.
2024-01-30 17:09:09 +01:00
Paul Donald
09cf4a17e0 house-keeping: PR workflow check improvements 2024-01-30 16:04:46 +01:00
Paul Donald
048c39abdf house-keeping: PR template with submission checklist
also check PR source branch (head_ref) is not main/master
2024-01-30 01:27:30 +01:00
Paul Donald
4dc7a4e19e house-keeping: workflow fixes 2024-01-30 00:53:23 +01:00
one-d-wide
b421c38290 ci: no longer require real name
This goes in accordance with the Linux Kernel:

> using a known identity (sorry, no anonymous contributions.)

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?id=HEAD#n442

Signed-off-by: one-d-wide <one-d-wide@protonmail.com>
2024-01-12 00:34:54 +01:00
Tianling Shen
568782ca97 CI: update remaining outdated dependencies
Ref: 63a5e3dcfc ("CI: update dependencies")
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-04-01 04:31:08 +08:00
Tianling Shen
63a5e3dcfc CI: update dependencies
The old version which uses Node.js v12 will be disabled
in the end of this year.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-03-29 01:27:32 +08:00
Giovanni Giacobbi
b18c42b5a8 CI: only run GitHub pages on the official repository
Signed-off-by: Giovanni Giacobbi <giovanni@giacobbi.net>
2021-11-16 09:37:12 +00:00
Paul Spooren
dc7144ffed CI: add formal tests
Migrate the same formal tests used in packages.git

Signed-off-by: Paul Spooren <mail@aparcar.org>
2021-10-09 22:52:02 -10:00
Paul Spooren
530144791e CI: test build LuCI packages
While all LuCI packages should always build fine, this allows others to
directly install those packages within test setups.

Signed-off-by: Paul Spooren <mail@aparcar.org>
2021-10-09 22:50:56 -10:00
Paul Spooren
276ad0ca63 CI: enable jekyll for docs for overview README
the overview README contains links for the client and server side API,
it's a markdown file and therefore requires jekyll to run.

Signed-off-by: Paul Spooren <mail@aparcar.org>
2021-10-08 23:35:42 -10:00
Paul Spooren
5f5a61caf8 CI: use GITHUB_TOKEN for page deployment
The token is set automatically when running on the master branch, no
personal access token is required.

Signed-off-by: Paul Spooren <mail@aparcar.org>
2021-10-08 17:20:07 -10:00
Paul Spooren
56ef04849d CI: automatically update jsapi docs
Use a GitHub Action to keep the docs updated, the current onces are 14
month old and outdated.

Use latest jsdoc package

Add full URL to LuCI.html file in README.md

Ignore generated HTML files via .gitignore

Signed-off-by: Paul Spooren <mail@aparcar.org>
2021-10-08 17:16:04 -10:00