You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+62-2Lines changed: 62 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -223,7 +223,7 @@ git push --force
223
223
## Writing High-Quality Code
224
224
225
225
1. Follow cFS code conventions (formatting, symbol naming, file naming, etc). Do *not* change/reformat existing code, except to address your changes.
226
-
- The cFS submodules uses the Format Check workflow to ensure users follow the [clang-format-10](https://releases.llvm.org/10.0.0/tools/clang/docs/ClangFormat.html) style.
226
+
- The cFS submodules uses the Format Check workflow to ensure users follow the [clang-format-10](https://github.com/nasa/cFS/blob/main/.clang-format) style. For more information on how to use the Format Check workflow, view [Using GitHub Actions Workflows](#using-github-actions-workflows).
227
227
- The [cFS_IdentifierNamingConvention document](https://github.com/nasa/cFE/blob/main/docs/cFS_IdentifierNamingConvention.md) provides a simple naming convention guide for cFE/cFS for commands and telemetry that simplifies the EDS to ground telemetry and commands database conversion.
228
228
- The [cFE Application Developers Guide](https://github.com/nasa/cFE/blob/main/docs/cFE%20Application%20Developers%20Guide.md) contains code conventions such as naming conventions for header files.
229
229
@@ -233,12 +233,72 @@ git push --force
233
233
234
234
4. For any changes to existing API's, alter the unit tests to cover the changes (and remove tests made irrelevant due to your changes).
235
235
236
-
5. Review the static code analyses results.
236
+
5. Review the static code analyses results from the Static Analysis and CodeQL Analysis workflows. For more information on how to use these workflows, view [Using GitHub Actions Workflows](#using-github-actions-workflows).
237
237
- Push code changes to the appropriate forked repository.
238
238
- Go to the Actions tab and enable GitHub Actions Workflow. The CodeQL Analyis and Static Analysis will be triggered for all pushed code.
239
239
- Review these workflows for any warnings or errors.
240
240
- Once successful, create a pull request.
241
241
242
+
### Using GitHub Actions Workflows
243
+
244
+
Several of our GitHub Actions Workflows are used to ensure pushed code and pull requests do not break cFS, create vulnerabilities, and follow our code conventions. Other workflows are used for documentation purposes.
245
+
246
+
Most of the workflows in the NASA/cFS repository will run for all branches when code is pushed and a pull request is created, except for the changelog workflow that runs manually.
247
+
248
+
All of our workflows will be available for forked repositories once enabled. To enable workflows, navigate to the Actions tab and click "I understand my workflows, go ahead and enable them".
249
+
250
+
#### View Failed Workflows
251
+
252
+
1. Navigate to Actions in the selected repository. For newly forked repositories, enable workflows after clicking on Actions.
253
+
2. In the left sidebar, click the workflow you want to view.
254
+
3. From the list of workflow runs, click the name of the run you want to see.
255
+
4. Under Jobs or in the visualization graph, click the failed job.
256
+
5. Any failed steps are automatically expanded to display the results.
257
+
258
+
#### View Workflow Results
259
+
1. Navigate to Actions in the selected repository. For newly forked repositories, enable workflows after clicking on Actions.
260
+
2. In the left sidebar, click the workflow you want to view.
261
+
3. From the list of workflow runs, click the name of the run you want to see.
262
+
4. Scroll to the bottom of the page and download the artifacts. For CodeQL results, navigate to the Security Tab and click Code scanning alerts. CodeQL results will only be avaiable on your forked repository.
263
+
264
+
or
265
+
266
+
1. In pull requests, click the Checks tab.
267
+
2. From the list of workflow runs, click the name of the run you want to see.
268
+
4. Scroll to the bottom of the page and download the artifacts. For CodeQL results, expand Code scanning alerts at the bottom of the list of checks and select CodeQL.
269
+
270
+
#### Configure Workflows
271
+
272
+
1. Workflows are under [.github/workflows](https://github.com/nasa/cFS/tree/main/).
273
+
2. Configure the files as needed. For more information on how to configure GitHub Actions, visit [Workflow syntax for GitHub Actions](https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions).
[](https://github.com/nasa/cfs/actions/workflows/build-cfs-deprecated.yml)
289
+
290
+
##### Build, Test, and Run [OMIT_DEPRECATED=true]
291
+
[](https://github.com/nasa/cfs/actions/workflows/build-cfs.yml)
292
+
293
+
##### Documentation and Guides
294
+
[](https://github.com/nasa/cfs/actions/workflows/build-documentation.yml)
[](https://github.com/nasa/osal/actions/workflows/local_unit_test.yml)
301
+
242
302
For more information on our GitHub Action Workflows, view our [Security Policy](https://github.com/nasa/cFS/security/policy).
0 commit comments