Skip to content

Commit

Permalink
build: update grafana/plugin-validator and pin nodejs version (#191)
Browse files Browse the repository at this point in the history
Signed-off-by: Andreas Gerstmayr <agerstmayr@redhat.com>
  • Loading branch information
andreasgerstmayr committed Apr 20, 2023
1 parent 03e6a6f commit c6322a9
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 4 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/ci.yml
Expand Up @@ -15,11 +15,16 @@ jobs:
- name: Checkout sources
uses: actions/checkout@v3

- name: Setup Node.js 17
uses: actions/setup-node@v3
with:
node-version: 17

- name: Install jsonnet, jsonnet-bundler and grafana/plugin-validator
run: |
go install github.com/google/go-jsonnet/cmd/jsonnet@latest
go install github.com/jsonnet-bundler/jsonnet-bundler/cmd/jb@latest
go install github.com/grafana/plugin-validator/cmd/plugincheck@latest
go install github.com/grafana/plugin-validator/pkg/cmd/plugincheck2@latest
echo "$HOME/go/bin" >> $GITHUB_PATH
- name: Install dependencies
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/codeql-analysis.yml
Expand Up @@ -34,6 +34,11 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

- name: Setup Node.js 17
uses: actions/setup-node@v3
with:
node-version: 17

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/release.yml
Expand Up @@ -12,11 +12,16 @@ jobs:
- name: Checkout sources
uses: actions/checkout@v3

- name: Setup Node.js 17
uses: actions/setup-node@v3
with:
node-version: 17

- name: Install jsonnet, jsonnet-bundler and grafana/plugin-validator
run: |
go install github.com/google/go-jsonnet/cmd/jsonnet@latest
go install github.com/jsonnet-bundler/jsonnet-bundler/cmd/jb@latest
go install github.com/grafana/plugin-validator/cmd/plugincheck@latest
go install github.com/grafana/plugin-validator/pkg/cmd/plugincheck2@latest
echo "$HOME/go/bin" >> $GITHUB_PATH
- name: Install dependencies
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Expand Up @@ -2,7 +2,7 @@

## 5.1.2 (unreleased)

(empty)
* **build**: update grafana/plugin-validator and pin nodejs version


## 5.1.1 (2022-10-27)
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -131,7 +131,7 @@ jsonnetfmt: ## Run jsonnetfmt on all jsonnet files
jsonnetfmt -i $$(find . -name '*.jsonnet')

plugincheck: ## Run Grafana plugincheck on the plugin zip file
plugincheck build/*.zip
plugincheck2 build/*.zip

clean: ## Clean all artifacts
rm -rf node_modules "$(JSONNET_VENDOR_DIR)" dist build
Expand Down

0 comments on commit c6322a9

Please sign in to comment.