Skip to content

Latest commit

 

History

History
53 lines (34 loc) · 1.31 KB

development.md

File metadata and controls

53 lines (34 loc) · 1.31 KB

Development

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 to main. If you want to add unit tests or more E2E tests, please do so!

Debugging

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.

artifact

Validation

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.

  1. Create file .secrets

    GH_TOKEN="xxxxxxxxxxxxxxxxxxxxx"
    SSH_KEY="-----BEGIN OPENSSH PRIVATE KEY-----xxxxxxxxxxxxxxx-----END OPENSSH PRIVATE KEY-----"
    
  2. Run act --secret-file=.secrets

Maintainers: Publish to a distribution branch

yarn run package
git add dist
git commit -m "Release"
git push origin releases/v1

See the versioning documentation