dataform-co / dataform

Dataform is a framework for managing SQL based data operations in BigQuery
https://cloud.google.com/dataform/docs
Apache License 2.0
851 stars 163 forks source link

Local test fix with npm install on cloudbuild #1850

Closed Tuseeq1 closed 1 month ago

Tuseeq1 commented 1 month ago

Moving yarn.lock to old version. This will allow open source contributors to keep developing and testing locally without any changes by simply running "./scripts/run_tests".

Updating "./scripts/run_tests_on_cloudbuild" script to use npm install. This will update yarn.lock file to fetch data from Airlock registry with building from cloud build trigger making sure we are still MOSS complaint. Using bazel run @nodejs//:npm install using the correct registry that is set in .npmrc file unlike bazel run @nodejs//:yarn that ignores it.