diff --git a/consumers.json b/consumers.json index eb47435..dd8aa2e 100644 --- a/consumers.json +++ b/consumers.json @@ -24,6 +24,13 @@ "openapi.yml", "psalm.yml" ] + }, + { + "repository": "LibreSign/libresign", + "workflows": [ + "lint-typescript.yml", + "node-test.yml" + ] } ] } diff --git a/workflow-catalog.json b/workflow-catalog.json index 155f976..706591e 100644 --- a/workflow-catalog.json +++ b/workflow-catalog.json @@ -6,6 +6,8 @@ "lint-php", "lint-php-cs", "lint-stylelint", + "lint-typescript", + "node-test", "npm-build", "openapi", "psalm", diff --git a/workflow-templates/lint-typescript.properties.json b/workflow-templates/lint-typescript.properties.json new file mode 100644 index 0000000..cbc3325 --- /dev/null +++ b/workflow-templates/lint-typescript.properties.json @@ -0,0 +1,13 @@ +{ + "name": "Typechecking", + "description": "Run the shared LibreCode TypeScript type-checking workflow.", + "iconName": "octicon codescan-checkmark", + "categories": [ + "TypeScript", + "code-quality", + "npm" + ], + "filePatterns": [ + "^tsconfig.json$" + ] +} diff --git a/workflow-templates/lint-typescript.properties.json.license b/workflow-templates/lint-typescript.properties.json.license new file mode 100644 index 0000000..1ce4e0c --- /dev/null +++ b/workflow-templates/lint-typescript.properties.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: 2026 LibreCode coop and contributors +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/workflow-templates/lint-typescript.yml b/workflow-templates/lint-typescript.yml new file mode 100644 index 0000000..6bab826 --- /dev/null +++ b/workflow-templates/lint-typescript.yml @@ -0,0 +1,20 @@ +# SPDX-FileCopyrightText: 2026 LibreCode coop and contributors +# SPDX-License-Identifier: AGPL-3.0-or-later + +name: Type checking + +on: + pull_request: + push: + branches: + - main + - master + - stable* + +permissions: + contents: read + pull-requests: read + +jobs: + typescript: + uses: LibreCodeCoop/github-workflows/.github/workflows/lint-typescript.yml@cedd15d4962e3194f35639deda66069c469bb794 diff --git a/workflow-templates/node-test.properties.json b/workflow-templates/node-test.properties.json new file mode 100644 index 0000000..8917f15 --- /dev/null +++ b/workflow-templates/node-test.properties.json @@ -0,0 +1,16 @@ +{ + "name": "Node testing workflow", + "description": "Run the shared LibreCode Node test and coverage workflow.", + "iconName": "octicon codescan-checkmark", + "categories": [ + "JavaScript", + "codecov", + "node", + "npm", + "test", + "coverage" + ], + "filePatterns": [ + "^package.json$" + ] +} diff --git a/workflow-templates/node-test.properties.json.license b/workflow-templates/node-test.properties.json.license new file mode 100644 index 0000000..1ce4e0c --- /dev/null +++ b/workflow-templates/node-test.properties.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: 2026 LibreCode coop and contributors +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/workflow-templates/node-test.yml b/workflow-templates/node-test.yml new file mode 100644 index 0000000..c06e141 --- /dev/null +++ b/workflow-templates/node-test.yml @@ -0,0 +1,20 @@ +# SPDX-FileCopyrightText: 2026 LibreCode coop and contributors +# SPDX-License-Identifier: AGPL-3.0-or-later + +name: Node tests + +on: + pull_request: + push: + branches: + - main + - master + - stable* + +permissions: + contents: read + pull-requests: read + +jobs: + node-tests: + uses: LibreCodeCoop/github-workflows/.github/workflows/node-test.yml@cedd15d4962e3194f35639deda66069c469bb794