Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 22 additions & 7 deletions .github/workflows/grafana-plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches:
- master
- "new_*"
- 'rel/1.*'
paths-ignore:
- 'docs/**'
- 'site/**'
Expand All @@ -25,11 +25,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

with:
repository: 'iotdb-connector/grafana-plugin'
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: "14.x"
node-version: "1.20"


- name: Get yarn cache directory path
id: yarn-cache-dir-path
Expand All @@ -53,13 +55,26 @@ jobs:
restore-keys: |
${{ runner.os }}-${{ matrix.node-version }}-nodemodules-

- name: Install dependencies and Build and test frontend
- name: list dir
run: |
cd iotdb-connector/grafana-plugin/
ls
yarn install --frozen-lockfile
yarn build

- name: Install dependencies and Build backend
- name: Install dependencies and Build and test frontend
run: |
cd iotdb-connector/grafana-plugin/
./backend-compile.sh
yarn install --frozen-lockfile
yarn build

# - name: Install dependencies and Build backend
# run: |
# cd iotdb-connector/grafana-plugin/
# ./backend-compile.sh

- name: Build backend
if: steps.check-for-backend.outputs.has-backend == 'true'
uses: magefile/mage-action@v1
with:
version: latest
args: buildAll
6 changes: 3 additions & 3 deletions iotdb-connector/grafana-plugin/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@

module github.com/grafana/grafana-starter-datasource-backend

go 1.16
go 1.20

require (
github.com/grafana/grafana-plugin-sdk-go v0.139.0
github.com/magefile/mage v1.13.0 // indirect
github.com/grafana/grafana-plugin-sdk-go v0.178.0
github.com/magefile/mage v1.15.0 // indirect
)