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
35 changes: 35 additions & 0 deletions .github/workflows/_update-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
# This workflow is centrally managed in https://github.com/LizardByte/.github/
# Don't make changes to this file in this repo as they will be overwritten with changes made to the same file in
# the above-mentioned repo.

# To use, add the `rtd` repository label to identify repositories that should trigger this workflow.
# If the project slug is not the repository name, add a repository variable named `READTHEDOCS_SLUG` with the value of
# the ReadTheDocs project slug.

# Update readthedocs on release events.

name: Update docs
permissions: {}

on:
release:
types:
- created
- edited
- deleted

concurrency:
group: "${{ github.workflow }}-${{ github.event.release.tag_name }}"
cancel-in-progress: true

jobs:
update-docs:
name: Update docs
uses: LizardByte/.github/.github/workflows/__call-update-docs.yml@master
if: github.repository_owner == 'LizardByte'
permissions: {}
with:
readthedocs_slug: ${{ vars.READTHEDOCS_SLUG }}
secrets:
READTHEDOCS_TOKEN: ${{ secrets.READTHEDOCS_TOKEN }}
63 changes: 6 additions & 57 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -226,64 +226,13 @@ jobs:

node-package:
name: Node package
needs:
- release-setup
permissions:
contents: read
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

- name: Set up Node.js
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: ${{ env.NODE_VERSION }}

- name: Set package version
env:
RELEASE_VERSION: ${{ needs.release-setup.outputs.release_version }}
run: npm version "${RELEASE_VERSION}" --no-git-tag-version

- name: Install Node.js dependencies
run: npm ci --ignore-scripts

- name: Test Node.js package
id: node-test
run: npm test

- name: Check Node.js package contents
run: npm publish --dry-run

- name: Upload Node.js test coverage
if: >-
always() &&
(steps.node-test.outcome == 'success' || steps.node-test.outcome == 'failure') &&
startsWith(github.repository, 'LizardByte/')
uses: codecov/codecov-action@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v7.1.1
with:
disable_search: true
fail_ci_if_error: true
files: ./coverage/lcov.info
flags: node-${{ env.NODE_VERSION }}
report_type: coverage
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true

- name: Upload Node.js test results
if: >-
always() &&
(steps.node-test.outcome == 'success' || steps.node-test.outcome == 'failure') &&
startsWith(github.repository, 'LizardByte/')
uses: codecov/codecov-action@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v7.1.1
with:
disable_search: true
fail_ci_if_error: true
files: ./junit-node.xml
flags: node-${{ env.NODE_VERSION }}
report_type: test_results
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true
contents: write # required for release_setup action
uses: LizardByte/.github/.github/workflows/__call-ci-node.yml@master
with:
create_release: false
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

standalone:
name: Standalone (${{ matrix.artifact }})
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ dist/
.coverage
coverage/
junit-python.xml
junit-node.xml
junit.xml
.pytest_cache/
.ruff_cache/
5 changes: 2 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"sync:lucide": "node scripts/sync-lucide.mjs",
"test": "npm run test:unit && npm run test:lint",
"test:lint": "eslint publish.js eslint.config.mjs bin scripts src/dockle/jsdoc_template src/dockle/sphinx/themes/dockle/static/dockle.js tests-js",
"test:unit": "c8 --all --include=publish.js --include=bin/*.cjs --include=src/dockle/jsdoc_template/*.js --reporter=lcov --reporter=text node --test --test-reporter=spec --test-reporter-destination=stdout --test-reporter=junit --test-reporter-destination=junit-node.xml tests-js/jsdoc-template.test.mjs",
"test:unit": "c8 --all --include=publish.js --include=bin/*.cjs --include=src/dockle/jsdoc_template/*.js --reporter=json --reporter=text node --test --test-reporter=spec --test-reporter-destination=stdout --test-reporter=junit --test-reporter-destination=junit.xml tests-js/jsdoc-template.test.mjs",
"test:package": "npm pack --dry-run"
},
"dependencies": {
Expand All @@ -67,7 +67,7 @@
"c8": "10.1.3",
"eslint": "10.11.0",
"globals": "17.12.0",
"highlightjs-fixtures": "https://github.com/highlightjs/highlight.js/archive/refs/tags/11.12.0.tar.gz",
"highlightjs-fixtures": "github:highlightjs/highlight.js#11.12.0",
"lucide": "1.47.0"
}
}
23 changes: 0 additions & 23 deletions renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,5 @@
"extends": [
"local>LizardByte/.github:renovate-config"
],
"customManagers": [
{
"customType": "regex",
"managerFilePatterns": [
"/^package\\.json$/"
],
"matchStrings": [
"\\\"highlightjs-fixtures\\\":\\s*\\\"https://github\\.com/highlightjs/highlight\\.js/archive/refs/tags/(?<currentValue>[^/]+)\\.tar\\.gz\\\""
],
"depNameTemplate": "highlightjs/highlight.js",
"datasourceTemplate": "github-tags",
"versioningTemplate": "semver"
}
],
"packageRules": [
{
"matchPackageNames": [
"@highlightjs/cdn-assets",
"highlightjs/highlight.js"
],
"groupName": "highlight.js"
}
],
"forkProcessing": "enabled"
}
3 changes: 1 addition & 2 deletions tests/test_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,7 @@ def test_highlighter_runtime_is_managed_by_npm(self) -> None:
self.assertRegex(version, r"^\d+\.\d+\.\d+$")
self.assertEqual(
fixtures,
"https://github.com/highlightjs/highlight.js/"
f"archive/refs/tags/{version}.tar.gz",
f"github:highlightjs/highlight.js#{version}",
)
self.assertTrue(
runtime.startswith(
Expand Down
Loading