developer-resource
developer-resource copied to clipboard
Reduce deployment time
Description
Deployment process of matters-web
and matters-server
are slow down (~20mins in total) by the test
(~10mins) and build
(~5mins) steps.
Checklist
- [ ] Remove
lint
andtest
steps; - [ ] Remove
build
step and pre-build in a separate job (e.g.build.yml
); - [ ] Use pre-build artifacts in
deploy.yml
; - [ ] Revise repo branch protection: require
test.yml
andbuild.yml
status check too pass before merging;
Refs
- https://docs.github.com/en/actions/using-workflows/storing-workflow-data-as-artifacts
- https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-protected-branches/about-protected-branches#require-status-checks-before-merging