mirror of
https://github.com/cse110-fa22-group29/cse110-fa22-group29.git
synced 2024-12-27 09:29:10 +00:00
Merge pull request #101 from cse110-fa22-group29/cicd-phase-2
CI phase 2
This commit is contained in:
commit
841cb1df14
BIN
admin/cipipeline/phase2.drawio.png
Normal file
BIN
admin/cipipeline/phase2.drawio.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 49 KiB |
47
admin/cipipeline/phase2.md
Normal file
47
admin/cipipeline/phase2.md
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
# CI/CD Phase 2
|
||||||
|
|
||||||
|
## Overall Pipeline Architecture
|
||||||
|
|
||||||
|
Rather than create one large pipeline with many steps which increases complexity, we decided to create many small independent pipelines which work in parallel to conduct code quality checking. Using this strategy, if any one pipeline has issues, we can still continue development without delay, and the quality of code is likely to remain high.
|
||||||
|
|
||||||
|
## Overview of Pipeline Features
|
||||||
|
|
||||||
|
We've identified 5 major features which we definitely want to implement in the CI/CD pipeline.
|
||||||
|
|
||||||
|
- Deployment
|
||||||
|
- Unit Testing
|
||||||
|
- Linting
|
||||||
|
- End To End Validation
|
||||||
|
- Manual Validation
|
||||||
|
|
||||||
|
We also identified some features which are nice to have:
|
||||||
|
- Automatic documentation publishing
|
||||||
|
- Minification
|
||||||
|
- HTML Validation and accessibility scoring
|
||||||
|
|
||||||
|
We created this diagram to demonstrate our strategy of multiple simple pipelines.
|
||||||
|
|
||||||
|
![Pipeline Diagram](phase2.drawio.png)
|
||||||
|
|
||||||
|
## Finished Features and Implementation
|
||||||
|
|
||||||
|
So far the features listed below have been completed to some degree:
|
||||||
|
|
||||||
|
- Deployment
|
||||||
|
- Implemented: action triggered on any push to main, uses the github pages action to publish the app
|
||||||
|
- Implemented: uses JSDoc to generate documentation on the same site at [docs](https://cse110-fa22-group29.github.io/cse110-fa22-group29/docs/)
|
||||||
|
- ToDo: Add minification step between trigger and github pages action
|
||||||
|
- Unit Testing
|
||||||
|
- Implemented: action triggers on PR to main, uses mocha to perform unit testing on core components
|
||||||
|
- End to end testing
|
||||||
|
- Implemented: action triggers on PR to main, uses mocha and puppeteer to perform end to end testing
|
||||||
|
- Linting (JS)
|
||||||
|
- Implemented: action triggers on PR to main, uses eslint to perform style enforcement on all JS components
|
||||||
|
- Linting (HTML)
|
||||||
|
- Implemented: action triggers on PR to main, uses HTMLhint to perform style enforcement on all HTML components
|
||||||
|
- Linting (CSS)
|
||||||
|
- Implemented: action triggers on PR to main, uses Stylelint to perform style enforcement on all CSS components
|
||||||
|
- Linting (general)
|
||||||
|
- Implemented: action triggers on PR to main, uses Prettier to perform style checking on all file types
|
||||||
|
|
||||||
|
## Planned Features and Timeline
|
BIN
admin/cipipeline/phase2.mp4
Normal file
BIN
admin/cipipeline/phase2.mp4
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user