All the Software developers of Netspective Communications LLC across all the projects
must have a consistent code CI process.
Controls
All are required to adhere to the continuous integration tool that aligns with their development technology listed below.
GitLab
All developers who use gitlab as version controlling tool must have .gitlab-ci.yml
in the project folder.
- Ensure to create
.gitlab-ci.yml
file in the project root. - Ensure to include
format
,lint
,test
,e2e
as stages. - Ensure to follow Code Formatting Policy, Code Linting Policy,Code Unit testing Policy, and Code E2E Testing Policy.
ReactJS
-
All the developers who use ReactJs must ensure to add the below content in
.gitlab-ci.yml
.stages: - format - lint - test - e2e unit-testing: image: node:latest stage: test before_script: - npm install script: - npm run test:ci coverage: /All files[^|]*\|[^|]*\s+([\d\.]+)/ artifacts: paths: - coverage/ when: always reports: junit: - junit.xml format: image: node:latest stage: format before_script: - npm install script: - npm run format lint: image: node:latest stage: lint before_script: - npm install script: - npm run lint e2e: image: node:latest stage: e2e before_script: - npm install - npx playwright install - npx playwright install-deps script: - npm run e2e artifacts: paths: - playwright-report/ when: always
[FII-CQI-120-CCI-01]
-
All React developers must ensure they are following React reference Project for React code quality.
Approved by
Abdul Razak
on September 28, 2023
|
Last Updated by
Abdul Razak PM
on
September 28, 2023