Install the dependencies
yarn install
Build the typescript and package it for distribution
yarn build
Run the tests ✔️
yarn test
As of writing this doc, there are no unit tests, just some E2E tests in
.github/workflows/test.*
which are run on every merge tomain
. If you want to add unit tests or more E2E tests, please do so!
In your repos, set the secret ACTIONS_STEP_DEBUG
to true
The action outputs will be more verbose and you will also be able to download the generated copy.bara.sky
configuration file.
You can use act for faster feedback at least until Docker is run (Copybara download/run). I haven't had time to look into configuring act to load a runner with docker support.
-
Create file
.secrets
GH_TOKEN="xxxxxxxxxxxxxxxxxxxxx" SSH_KEY="-----BEGIN OPENSSH PRIVATE KEY-----xxxxxxxxxxxxxxx-----END OPENSSH PRIVATE KEY-----"
-
Run
act --secret-file=.secrets
yarn run package
git add dist
git commit -m "Release"
git push origin releases/v1
See the versioning documentation