Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 1.62 KB

CONTRIBUTING.md

File metadata and controls

38 lines (26 loc) · 1.62 KB

Contributing to action-setup-vim

Thank you for contributing to action-setup-vim. This document is for development.

Testing

For testing validation for inputs and outputs, run unit tests:

$ npm run test

Tests for installation logic are done in CI workflows in E2E testing manner. All combinations of inputs are tested on the workflows triggered by push and pull_request events.

After building and running action-setup-vim action, the workflow verifies the post conditions with post_action_check.ts.

How to create a new release

When releasing v1.2.3:

  1. Run $ bash scripts/prepare-release.sh v1.2.3. It builds everything and prunes node_modules for removing all dev-dependencies. Then it copies built artifacts to dev/v1 branch and makes a new commit and tag v1.2.3. Finally it rearrange v1 and v1.2 tags to point the new commit.
  2. Check changes in the created commit with git show.
  3. If ok, run $ bash ./prepare-release.sh v1.2.3 --done to apply the release to the remote. The script will push the branch and the new tag, then force-push the existing tags.

Post release check

Post-release check workflow runs to check released rhysd/action-setup-vim@v1 action. The workflow runs when modifying CHANGELOG.md and also runs on every Sunday 00:00 UTC.