-
Notifications
You must be signed in to change notification settings - Fork 6k
feat: add test for get_nfpm_arch() #4194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report
@@ Coverage Diff @@
## main #4194 +/- ##
=======================================
Coverage 64.22% 64.22%
=======================================
Files 36 36
Lines 1873 1873
Branches 379 379
=======================================
Hits 1203 1203
Misses 569 569
Partials 101 101 Continue to review full report at Codecov.
|
✨ Coder.com for PR #4194 deployed! It will be updated on every commit.
|
5a78300
to
6967c6f
Compare
We think it's because the runner doesn't have |
fbd1386
to
24708b3
Compare
24708b3
to
d06f6a8
Compare
d06f6a8
to
6a69248
Compare
This adds tests for build-packages.sh, specifically
This PR introduces a new file called
build-lib.sh
which extracts theget_nfpm_arch()
function out ofbuild-packages.sh
so that it can be unit tested. I did this because if yousource build-packages.sh
it runs themain
function.With this new approach, we can move individual functions related to the build process into
build-lib.sh
and unit test them.The inspiration for this came from some recent rockiness with the 3.12.0 release and our interest in stabilizing the build and release pipeline.
Fixes N/A
Note: I would love if we could fully test all our scripts used in the build and release process. I also tossed around the idea of rewriting these scripts in JS/TS but that's a discussion for the future 😉