Skip to content

Commit

Permalink
Update RMF Grafana app workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitry Nikolaev <[email protected]>
  • Loading branch information
DNikolaevAtRocket committed May 24, 2024
1 parent cb86505 commit 60b88ac
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
name: Release Grafana RMF App
name: ibm-rmf-grafana

on:
push:
branches:
- 'staging/v*'
- 'release/v*'
tags:
- ibm-rmf-grafana/v*
- 'ibm-rmf-grafana/v*'
pull_request:
branches:
- 'staging/v*'
- 'release/v*'

jobs:
build:
Expand All @@ -18,7 +25,7 @@ jobs:
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: grafana/rmf-app/.nvmrc
cache: 'yarn'
Expand All @@ -30,6 +37,16 @@ jobs:
go-version-file: grafana/rmf-app/go.mod
cache-dependency-path: grafana/rmf-app/go.sum

- name: Test
run: make test

- name: Lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.58
only-new-issues: true
working-directory: grafana/rmf-app

- name: Build
run: make all

Expand All @@ -49,6 +66,7 @@ jobs:
sign:
runs-on: code-sign
needs: build
if: startsWith(github.ref, 'refs/tags/ibm-rmf-grafana/v')

steps:
- name: Download Build
Expand All @@ -74,6 +92,7 @@ jobs:
release:
runs-on: ubuntu-latest
needs: sign
if: startsWith(github.ref, 'refs/tags/ibm-rmf-grafana/v')

steps:
- name: Download Build
Expand Down
4 changes: 4 additions & 0 deletions grafana/rmf-app/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change Log

## 1.0.4 (xxxx-xx-xx)

TBD

## 1.0.3 (2024-02-29)

- Time-series dashboards plot graphs correctly even when NaN values are in the historical data.
Expand Down
8 changes: 7 additions & 1 deletion grafana/rmf-app/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ dev-frontend: deps-frontend ## Build frontend data sources (development)
watch-frontend: deps-frontend ## Auto rebuilt frontend on file changes
yarn run watch

dev-backend: deps-backend # Build backend data sources (development)
dev-backend: deps-backend ## Build backend data sources (development)
go build -race -o ./dist/datasources/redisrmf-datasource/gpx_ibm-rmf-datasource_$$(go env GOOS)_$$(go env GOARCH) -tags netgo -ldflags -w ./pkg

restart-backend: ## Rebuild and restart backend data source (as root)
Expand All @@ -57,6 +57,12 @@ build-backend: deps-backend ## Build backend data source
copy-config: #copy the rmf-plugin-config.yml to executable path
cp ./pkg/plugin/rmf-plugin-config.yml ./dist/datasources/rmf-datasource/

test: deps-backend ## Run unittests
go test -v ./...

lint: ## Run linters
golangci-lint run

build: build-frontend build-backend copy-config ## Build everything

zip: ## Zip the plugin
Expand Down

0 comments on commit 60b88ac

Please sign in to comment.