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-plugin: updates for ci workflow #242

Merged
merged 2 commits into from
May 19, 2023
Merged

Conversation

briangann
Copy link
Contributor

@briangann briangann commented May 11, 2023

What this PR does / why we need it:

This PR makes the following adjustments:

  1. Build the backend before running E2E tests (to be able to exercise a datasource)
  2. Only run E2E tasks if the cypress directory exists
  3. Uploads video output of E2E/cypress failures with 5 day retention
  4. Bumps go to 1.20

These are just suggestions and how I've modified my plugins to operate (not all have E2E and build times are slower due to spinning up/down docker)

Which issue(s) this PR fixes:

No issue open currently.

Special notes for your reviewer:

I have these changes active in a panel plugin (an unpublished one)

📦 Published PR as canary version: Canary Versions

✨ Test out this PR locally via:

npm install @grafana/create-plugin@1.3.1-canary.242.272cf0e.0
# or 
yarn add @grafana/create-plugin@1.3.1-canary.242.272cf0e.0

@briangann briangann added the create-plugin related to the create-plugin tool label May 11, 2023
@jackw jackw added minor Increment the minor version when merged release Create a release when this pr is merged labels May 16, 2023
Copy link
Collaborator

@jackw jackw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 🚀

@jackw jackw added patch Increment the patch version when merged and removed minor Increment the minor version when merged labels May 16, 2023
run: docker-compose up -d

- name: Run e2e tests
if: steps.check-for-e2e.outputs.has-e2e == 'true'
Copy link
Collaborator

@jackw jackw May 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to add id: run-e2e-tests to this step if we want to only upload videos for failing tests.

…i.yml

Co-authored-by: Jack Westbrook <jack.westbrook@gmail.com>
@briangann briangann merged commit 5627e66 into main May 19, 2023
@briangann briangann deleted the 20230510_update_ci_workflow branch May 19, 2023 02:20
@grafanabot
Copy link
Contributor

🚀 PR was released in @grafana/create-plugin@1.3.3 🚀

@grafanabot grafanabot added the released This issue/pull request has been released. label May 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
create-plugin related to the create-plugin tool patch Increment the patch version when merged release Create a release when this pr is merged released This issue/pull request has been released.
Projects
Development

Successfully merging this pull request may close these issues.

4 participants