diff --git a/.github/workflows/grafana-plugin.yml b/.github/workflows/grafana-plugin.yml index 38f7757442e22..01da6bf2f9cb2 100644 --- a/.github/workflows/grafana-plugin.yml +++ b/.github/workflows/grafana-plugin.yml @@ -4,7 +4,7 @@ on: push: branches: - master - - "new_*" + - 'rel/1.*' paths-ignore: - 'docs/**' - 'site/**' @@ -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 @@ -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 diff --git a/iotdb-connector/grafana-plugin/go.mod b/iotdb-connector/grafana-plugin/go.mod index e6d4a76021b61..68b227918f7f3 100644 --- a/iotdb-connector/grafana-plugin/go.mod +++ b/iotdb-connector/grafana-plugin/go.mod @@ -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 )