Skip to content
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

Add CI and Publish workflows with GitHub Actions #209

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

mainnet-pat
Copy link

@mainnet-pat mainnet-pat commented Apr 30, 2024

This PR adds support for running test suite using dockerized monerod and monero-wallet-cli

Also this dockerized setup is used in GitHub Actions. Tests are ran upon any push onto master, feature/*, bugfix/* or develop branches. Also against any PRs targeting master branch.

Example CI run https://github.com/mainnet-pat/monero-ts/actions/runs/8894726876/job/24423583889

To run tests locally once can run USE_DOCKER=1 npm run test.

Also publishing to NPM is now part of GH workflows. It requires following setup first:

  1. login to npm, go to profile, access tokens, create new classic token
  2. type name, select automation, click generate
  3. open this github repo, go to settings, secrets and variables, actions, on tab secrets click New repository secret, set name to NPM_TOKEN, paste the npm token from previous step
  4. to make use of Publish Github action go to this github repo, click on Releases, Draft new release, Choose tag, enter tag name, click create new tag on publish, enter release title and notes, click publish release, wait for triggered Publish action to complete.

Example Publish run https://github.com/mainnet-pat/monero-ts/actions/runs/8894682153/job/24423445448

@mainnet-pat
Copy link
Author

Resolves #208

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant