-
Notifications
You must be signed in to change notification settings - Fork 0
Test Styles Build Chain, Long Way
Wesley B edited this page Jul 29, 2022
·
1 revision
Confirm similar or identical build output for project(s) on default branch versus the branch to test.
When checking out branches:
If branch has change to dependency or version of dependency, then runnpm ci
.
When running commands:
This document assumes the current working directory to be/libs/core-styles
.
-
Clean out any previous testing you may have done with these steps.
git rm -rf dist-for-compare
-
Confirm CSS on default branch builds.
Follow default branch's instructions to build.
-
Copy build output to new directory, and stage the change with Git.
rm -rf dist-for-compare cp -r dist dist-for-compare git add dist-for-compare
-
Confirm CSS on new branch builds.
Follow new branch's instructions to build.
-
Replace that copied old build output with new build output (do not stage).
rm -rf dist-for-compare cp -r dist dist-for-compare
-
Compare the build outputs via
git status
.git status
-
Confirm you see only relevant staged changes.
- (via
git status
) You should see "Changes to be committed" fordist-for-compare/
. - (via
git status
) You may see "Changes not staged for commit" fordist-for-compare/
.
The test instructions that led you to this document will clarify whether you should see "Changes not staged for commit" (represents build output change) and if so, what should have changed. - (via