33# GitHub Reusable Workflow: Node.js Continuous Integration
44
55<div align =" center " >
6- <img src =" https://opengraph.githubassets.com/5bff83a351121c577bee39e10ea7d6774aba5d0d7d7b114ba0e8b79d48d09267 /hoverkraft-tech/ci-github-nodejs " width =" 60px " align =" center " alt =" Node.js Continuous Integration " />
6+ <img src =" https://opengraph.githubassets.com/50237226ce5d3230f19bbf31d04efd98f21cb2150e9ae4acd09a498440ecde82 /hoverkraft-tech/ci-github-nodejs " width =" 60px " align =" center " alt =" Node.js Continuous Integration " />
77</div >
88
99---
@@ -34,6 +34,7 @@ Workflow to performs continuous integration steps agains a Node.js project:
3434
3535- ** ` contents ` ** : ` read `
3636- ** ` id-token ` ** : ` write `
37+ - ** ` pull-requests ` ** : ` write `
3738- ** ` security-events ` ** : ` write `
3839
3940<!-- overview:end -->
5152permissions : {}
5253jobs :
5354 continuous-integration :
54- uses : hoverkraft-tech/ci-github-nodejs/.github/workflows/continuous-integration.yml@23af54bc615d657aa9c13c472ae701445c1811a6 # 0.17.1
55+ uses : hoverkraft-tech/ci-github-nodejs/.github/workflows/continuous-integration.yml@32a69b7b8fd5f7ab7bf656e7e88aa90ad235cf8d # 0.18.0
5556 secrets :
5657 # Secrets to be used during the build step.
5758 # Must be a multi-line env formatted string.
@@ -99,9 +100,12 @@ jobs:
99100 # Default: `true`
100101 checks : true
101102
102- # Optional flag to enable linting.
103+ # Whether to enable linting.
104+ # Set to `null` or empty to disable.
105+ # Accepts a JSON object for lint options. See [lint action](../actions/lint/README.md).
106+ #
103107 # Default: `true`
104- lint : true
108+ lint : " true"
105109
106110 # Code QL analysis language. See <https://github.com/github/codeql-action>.
107111 # Default: `typescript`
@@ -111,13 +115,12 @@ jobs:
111115 # Default: `true`
112116 dependency-review : true
113117
114- # Optional flag to enable test.
118+ # Whether to enable testing.
119+ # Set to `null` or empty to disable.
120+ # Accepts a JSON object for test options. See [test action](../actions/test/README.md).
121+ #
115122 # Default: `true`
116- test : true
117-
118- # Specify code coverage reporter. Supported values: `codecov`.
119- # Default: `codecov`
120- coverage : codecov
123+ test : " true"
121124
122125 # Working directory where the dependencies are installed.
123126 # Default: `.`
@@ -150,11 +153,14 @@ jobs:
150153| | Example : | | | |
151154| | <!-- textlint-disable --><pre lang="json">{ "commands": [ "build", "generate-artifacts" ], "env": { "CUSTOM_ENV_VAR": "value" }, "artifact": [ "dist/", "packages/package-a/build/" ] }</pre><!-- textlint-enable --> | | | |
152155| **`checks`** | Optional flag to enable check steps. | **false** | **boolean** | `true` |
153- | **`lint`** | Optional flag to enable linting. | **false** | **boolean** | `true` |
156+ | **`lint`** | Whether to enable linting. | **false** | **string** | `true` |
157+ | | Set to `null` or empty to disable. | | | |
158+ | | Accepts a JSON object for lint options. See [lint action](../actions/lint/README.md). | | | |
154159| **`code-ql`** | Code QL analysis language. See <https://github.com/github/codeql-action>. | **false** | **string** | `typescript` |
155160| **`dependency-review`** | Enable dependency review scan. See <https://github.com/actions/dependency-review-action>. | **false** | **boolean** | `true` |
156- | **`test`** | Optional flag to enable test. | **false** | **boolean** | `true` |
157- | **`coverage`** | Specify code coverage reporter. Supported values : ` codecov` . | **false** | **string** | `codecov` |
161+ | **`test`** | Whether to enable testing. | **false** | **string** | `true` |
162+ | | Set to `null` or empty to disable. | | | |
163+ | | Accepts a JSON object for test options. See [test action](../actions/test/README.md). | | | |
158164| **`working-directory`** | Working directory where the dependencies are installed. | **false** | **string** | `.` |
159165| **`container`** | Docker container image to run CI steps in. When specified, steps will execute inside this container instead of checking out code. The container should have the project code and dependencies pre-installed. | **false** | **string** | - |
160166
@@ -174,6 +180,13 @@ jobs:
174180<!-- secrets:end -->
175181
176182<!-- outputs:start -->
183+
184+ # # Outputs
185+
186+ | **Output** | **Description** |
187+ | ----------------------- | --------------------------------------------------------- |
188+ | **`build-artifact-id`** | ID of the build artifact) uploaded during the build step. |
189+
177190<!-- outputs:end -->
178191
179192<!-- examples:start -->
193206
194207jobs:
195208 continuous-integration:
196- uses: hoverkraft-tech/ci-github-nodejs/.github/workflows/continuous-integration.yml@23af54bc615d657aa9c13c472ae701445c1811a6 # 0.17.1
209+ uses: hoverkraft-tech/ci-github-nodejs/.github/workflows/continuous-integration.yml@32a69b7b8fd5f7ab7bf656e7e88aa90ad235cf8d # 0.18.0
197210 permissions:
198211 id-token: write
199212 security-events: write
@@ -259,7 +272,7 @@ jobs:
259272 # Run CI checks inside the Docker container
260273 continuous-integration:
261274 needs: build-image
262- uses: hoverkraft-tech/ci-github-nodejs/.github/workflows/continuous-integration.yml@23af54bc615d657aa9c13c472ae701445c1811a6 # 0.17.1
275+ uses: hoverkraft-tech/ci-github-nodejs/.github/workflows/continuous-integration.yml@32a69b7b8fd5f7ab7bf656e7e88aa90ad235cf8d # 0.18.0
263276 permissions:
264277 id-token: write
265278 security-events: write
0 commit comments