tiktok-sparo/build-tests/sparo-real-repo-test/README.md

11 lines
714 B
Markdown
Raw Normal View History

2024-03-07 14:27:54 -05:00
# sparo-real-repo-test
2024-03-06 20:25:24 -05:00
Building this project tests sparo command outputs with a real GitHub repo, which is the "build-test" branch of "sparo" itself.
2024-03-06 20:25:24 -05:00
# Details
`lib/start-test.js` is run after building the project. This scripts generate the output text files under `temp/etc`. In local builds, those files are copied to `etc` folder. During a CI build, the files under these two folders are compared and the CI build fails if they are different. This ensures that files under `etc` folder must be up to date in the PR, and people who review the PR must approve any changes.
# How to fix the build errors
2024-03-07 14:27:54 -05:00
Run `rush build -t sparo-real-repo-test` to regenerate files under `etc` folder and commit them into Git.