-
Notifications
You must be signed in to change notification settings - Fork 298
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Switch to pnpm + adjust to IRM (#4969)
# What this PR does - switch to pnpm - adjust to IRM ## Which issue(s) this PR closes Related to: grafana/irm#12 grafana/irm#11 grafana/irm#66 <!-- *Note*: If you want the issue to be auto-closed once the PR is merged, change "Related to" to "Closes" in the line above. If you have more than one GitHub issue that this PR closes, be sure to preface each issue link with a [closing keyword](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/using-keywords-in-issues-and-pull-requests#linking-a-pull-request-to-an-issue). This ensures that the issue(s) are auto-closed once the PR has been merged. --> ## Checklist - [x] Unit, integration, and e2e (if applicable) tests updated - [x] Documentation added (or `pr:no public docs` PR label added if not required) - [x] Added the relevant release notes label (see labels prefixed w/ `release:`). These labels dictate how your PR will show up in the autogenerated release notes.
- Loading branch information
Showing
19 changed files
with
13,664 additions
and
13,076 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,18 @@ | ||
name: "Install frontend dependencies" | ||
description: "Setup node + install frontend dependencies" | ||
inputs: | ||
working-directory: | ||
description: "Relative path to oncall/grafana-plugin directory" | ||
required: false | ||
default: "." | ||
name: Install frontend dependencies | ||
description: Setup node/pnpm + install frontend dependencies | ||
runs: | ||
using: "composite" | ||
using: composite | ||
steps: | ||
- name: Determine grafana-plugin directory location | ||
id: grafana-plugin-directory | ||
shell: bash | ||
run: echo "grafana-plugin-directory=${{ inputs.working-directory }}/grafana-plugin" >> $GITHUB_OUTPUT | ||
- name: Determine yarn.lock location | ||
id: yarn-lock-location | ||
shell: bash | ||
# yamllint disable rule:line-length | ||
run: echo "yarn-lock-location=${{ steps.grafana-plugin-directory.outputs.grafana-plugin-directory }}/yarn.lock" >> $GITHUB_OUTPUT | ||
# yamllint enable rule:line-length | ||
- name: Install pnpm | ||
uses: pnpm/action-setup@v4 | ||
with: | ||
version: 9.1.4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20.15.1 | ||
cache: "yarn" | ||
cache-dependency-path: ${{ steps.yarn-lock-location.outputs.yarn-lock-location }} | ||
- name: Use cached frontend dependencies | ||
id: cache-frontend-dependencies | ||
uses: actions/cache@v4 | ||
with: | ||
path: ${{ inputs.working-directory }}/grafana-plugin/node_modules | ||
# yamllint disable rule:line-length | ||
key: ${{ runner.os }}-frontend-node-modules-${{ hashFiles(steps.yarn-lock-location.outputs.yarn-lock-location) }} | ||
# yamllint enable rule:line-length | ||
cache: pnpm | ||
cache-dependency-path: grafana-plugin/pnpm-lock.yaml | ||
- name: Install frontend dependencies | ||
if: steps.cache-frontend-dependencies.outputs.cache-hit != 'true' | ||
shell: bash | ||
working-directory: ${{ steps.grafana-plugin-directory.outputs.grafana-plugin-directory }} | ||
run: yarn install --frozen-lockfile --prefer-offline --network-timeout 500000 | ||
working-directory: grafana-plugin | ||
run: pnpm install --frozen-lockfile --prefer-offline |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ venv | |
.DS_Store | ||
.env | ||
|
||
yarn.lock | ||
pnpm.lock | ||
node_modules | ||
|
||
test-results |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ extends: default | |
|
||
ignore: | | ||
helm/oncall/templates/**/*.yaml | ||
pnpm-lock.yaml | ||
rules: | ||
line-length: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.