-
Notifications
You must be signed in to change notification settings - Fork 32
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
CI: Split gh workflow generate commands into a matrix #463
Conversation
Hello! 👋 This repository uses Auto for releasing packages using PR labels. ✨ This PR can be merged. It will not be considered when calculating future versions of the npm packages and will not appear in the changelogs. |
d1a5a67
to
38c45dc
Compare
d8ebc92
to
d5c08b5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some comments/questions here. In general it LGTM 👍
|
||
generate-plugins: | ||
name: Test plugin scaffolding | ||
if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe it's better to use a label for this? Also, why would you want to skip the CI?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This workflow runs on push and when a package in this repo is published we push changes to main and the commit message contains these strings so we can bypass unnecessary workflow runs.
LGTM! |
What this PR does / why we need it:
This PR splits the
generate-<pluginType>
commands into a matrix to try to improve the times and also so we can run commands as individual steps against the scaffolded plugin rather than doing it as a one liner ofnpm exec nx run @grafana/create-plugin:generate-app-backend && (cd ./packages/create-plugin/generated && npm install && npm run build && npm run lint && mage -v build:linux)
.To speed up these tasks further we need to figure out what is going on with
npm ci
which seems to be taking ages.Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer: