|
3 | 3 | # GitHub Reusable Workflow: Node.js Continuous Integration |
4 | 4 |
|
5 | 5 | <div align="center"> |
6 | | - <img src="https://opengraph.githubassets.com/18a765fa9c9c81cb07807356ca5cd6b7f081abeef5ae263581ba407bebfb6ac0/hoverkraft-tech/ci-github-nodejs" width="60px" align="center" alt="Node.js Continuous Integration" /> |
| 6 | + <img src="https://opengraph.githubassets.com/e309cae9c17a1139fbcaed62e9536b80cf64fd9d2c43359c5c5c666666bea49c/hoverkraft-tech/ci-github-nodejs" width="60px" align="center" alt="Node.js Continuous Integration" /> |
7 | 7 | </div> |
8 | 8 |
|
9 | 9 | --- |
@@ -54,7 +54,7 @@ permissions: |
54 | 54 | id-token: write |
55 | 55 | jobs: |
56 | 56 | continuous-integration: |
57 | | - uses: hoverkraft-tech/ci-github-nodejs/.github/workflows/continuous-integration.yml@acb0215bd991fe9aa6e8309fe0612620f40186f8 # copilot/update-workflow-for-docker-image |
| 57 | + uses: hoverkraft-tech/ci-github-nodejs/.github/workflows/continuous-integration.yml@4d7c1ed87c18493fc4c2dbae4dbde46cf251c9a7 # 0.16.1 |
58 | 58 | secrets: |
59 | 59 | # Secrets to be used during the build step. |
60 | 60 | # Must be a multi-line env formatted string. |
|
64 | 64 | # ``` |
65 | 65 | build-secrets: "" |
66 | 66 | with: |
| 67 | + # JSON array of runner(s) to use. |
| 68 | + # See https://docs.github.com/en/actions/using-jobs/choosing-the-runner-for-a-job. |
| 69 | + # |
| 70 | + # Default: `["ubuntu-latest"]` |
| 71 | + runs-on: '["ubuntu-latest"]' |
| 72 | + |
67 | 73 | # Build parameters. Must be a string or a JSON object. |
68 | 74 | # For string, provide a list of commands to run during the build step, one per line. |
69 | 75 | # For JSON object, provide the following properties: |
@@ -132,26 +138,28 @@ jobs: |
132 | 138 |
|
133 | 139 | ### Workflow Call Inputs |
134 | 140 |
|
135 | | -| **Input** | **Description** | **Required** | **Type** | **Default** | |
136 | | -| ----------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------ | ----------- | ------------ | |
137 | | -| **`build`** | Build parameters. Must be a string or a JSON object. | **false** | **string** | `build` | |
138 | | -| | For string, provide a list of commands to run during the build step, one per line. | | | | |
139 | | -| | For JSON object, provide the following properties: | | | | |
140 | | -| | | | | | |
141 | | -| | - `commands`: Array of commands to run during the build step. | | | | |
142 | | -| | - `env`: Object of environment variables to set during the build step. | | | | |
143 | | -| | - `artifact`: String or array of strings specifying paths to artifacts to upload after the build | | | | |
144 | | -| | | | | | |
145 | | -| | Example: | | | | |
146 | | -| | <!-- textlint-disable --><pre lang="json">{ "commands": [ "build", "generate-artifacts" ], "env": { "CUSTOM_ENV_VAR": "value" }, "artifact": [ "dist/", "packages/package-a/build/" ] }</pre><!-- textlint-enable --> | | | | |
147 | | -| **`checks`** | Optional flag to enable check steps. | **false** | **boolean** | `true` | |
148 | | -| **`lint`** | Optional flag to enable linting. | **false** | **boolean** | `true` | |
149 | | -| **`code-ql`** | Code QL analysis language. See <https://github.com/github/codeql-action>. | **false** | **string** | `typescript` | |
150 | | -| **`dependency-review`** | Enable dependency review scan. See <https://github.com/actions/dependency-review-action>. | **false** | **boolean** | `true` | |
151 | | -| **`test`** | Optional flag to enable test. | **false** | **boolean** | `true` | |
152 | | -| **`coverage`** | Specify code coverage reporter. Supported values: `codecov`. | **false** | **string** | `codecov` | |
153 | | -| **`working-directory`** | Working directory where the dependencies are installed. | **false** | **string** | `.` | |
154 | | -| **`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** | - | |
| 141 | +| **Input** | **Description** | **Required** | **Type** | **Default** | |
| 142 | +| ----------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------ | ----------- | ------------------- | |
| 143 | +| **`runs-on`** | JSON array of runner(s) to use. | **false** | **string** | `["ubuntu-latest"]` | |
| 144 | +| | See <https://docs.github.com/en/actions/using-jobs/choosing-the-runner-for-a-job>. | | | | |
| 145 | +| **`build`** | Build parameters. Must be a string or a JSON object. | **false** | **string** | `build` | |
| 146 | +| | For string, provide a list of commands to run during the build step, one per line. | | | | |
| 147 | +| | For JSON object, provide the following properties: | | | | |
| 148 | +| | | | | | |
| 149 | +| | - `commands`: Array of commands to run during the build step. | | | | |
| 150 | +| | - `env`: Object of environment variables to set during the build step. | | | | |
| 151 | +| | - `artifact`: String or array of strings specifying paths to artifacts to upload after the build | | | | |
| 152 | +| | | | | | |
| 153 | +| | Example: | | | | |
| 154 | +| | <!-- textlint-disable --><pre lang="json">{ "commands": [ "build", "generate-artifacts" ], "env": { "CUSTOM_ENV_VAR": "value" }, "artifact": [ "dist/", "packages/package-a/build/" ] }</pre><!-- textlint-enable --> | | | | |
| 155 | +| **`checks`** | Optional flag to enable check steps. | **false** | **boolean** | `true` | |
| 156 | +| **`lint`** | Optional flag to enable linting. | **false** | **boolean** | `true` | |
| 157 | +| **`code-ql`** | Code QL analysis language. See <https://github.com/github/codeql-action>. | **false** | **string** | `typescript` | |
| 158 | +| **`dependency-review`** | Enable dependency review scan. See <https://github.com/actions/dependency-review-action>. | **false** | **boolean** | `true` | |
| 159 | +| **`test`** | Optional flag to enable test. | **false** | **boolean** | `true` | |
| 160 | +| **`coverage`** | Specify code coverage reporter. Supported values: `codecov`. | **false** | **string** | `codecov` | |
| 161 | +| **`working-directory`** | Working directory where the dependencies are installed. | **false** | **string** | `.` | |
| 162 | +| **`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** | - | |
155 | 163 |
|
156 | 164 | <!-- inputs:end --> |
157 | 165 |
|
|
188 | 196 |
|
189 | 197 | jobs: |
190 | 198 | continuous-integration: |
191 | | - uses: hoverkraft-tech/ci-github-nodejs/.github/workflows/continuous-integration.yml@acb0215bd991fe9aa6e8309fe0612620f40186f8 # copilot/update-workflow-for-docker-image |
| 199 | + uses: hoverkraft-tech/ci-github-nodejs/.github/workflows/continuous-integration.yml@4d7c1ed87c18493fc4c2dbae4dbde46cf251c9a7 # 0.16.1 |
192 | 200 | permissions: |
193 | 201 | id-token: write |
194 | 202 | security-events: write |
@@ -254,7 +262,7 @@ jobs: |
254 | 262 | # Run CI checks inside the Docker container |
255 | 263 | continuous-integration: |
256 | 264 | needs: build-image |
257 | | - uses: hoverkraft-tech/ci-github-nodejs/.github/workflows/continuous-integration.yml@acb0215bd991fe9aa6e8309fe0612620f40186f8 # copilot/update-workflow-for-docker-image |
| 265 | + uses: hoverkraft-tech/ci-github-nodejs/.github/workflows/continuous-integration.yml@4d7c1ed87c18493fc4c2dbae4dbde46cf251c9a7 # 0.16.1 |
258 | 266 | permissions: |
259 | 267 | id-token: write |
260 | 268 | security-events: write |
|
0 commit comments