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

Create github action to generate tag/release #12885

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

KevinMind
Copy link
Contributor

Fixes: Manual release process

Description

Github action to create tags for release. You can dispatch via the action web interface or via cli. One day, maybe we will create a tag on every push to master, who knows...

Context

This is a good first step in automating the deployment phase of our release process. We already deploy to stage when a tag is pushed and this automates the generation of the tag, meaning you can deploy to stage via a button 💯

Testing

You can run this action via the github cli

gh workflow run --ref auto-tag

Then select the appropriate workflow

> Tag Repository for Release to Staging (tag-release.yml)

And select your options for push and tag

Test cases

Invalid tag

  1. pass "banana" as tag

  2. expect error "does not match the format YYYY.MM.DD"

  3. pass "2024-03-12"

  4. expect same error as above.

Invalid date

  1. Pass "1999.12.31"
  2. expect error "is earlier than current date"

You must provide a valid date string which is greater or equal to today's date.

Copy link

codecov bot commented Mar 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.28%. Comparing base (fcffe8d) to head (4e59ed4).

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #12885   +/-   ##
=======================================
  Coverage   98.28%   98.28%           
=======================================
  Files         267      267           
  Lines       10508    10508           
  Branches     3178     3178           
=======================================
  Hits        10328    10328           
  Misses        167      167           
  Partials       13       13           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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