Skip to content

Commit da2ef34

Browse files
authored
Add Set up go step to Build backend
1 parent 6853482 commit da2ef34

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/main.yml

+12-3
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,30 @@ jobs:
1010
runs-on: ubuntu-latest
1111

1212
steps:
13-
- uses: actions/checkout@v2
13+
- name: Checkout
14+
uses: actions/checkout@v2
1415

1516
- name: Setup Node.js environment
1617
uses: actions/setup-node@v2.1.2
1718
with:
1819
node-version: 12.x
1920

21+
- name: Set up Go
22+
uses: actions/setup-go@v2
23+
with:
24+
go-version: 1.14
25+
2026
- name: Install dependencies
2127
run: yarn install
2228

2329
- name: Build plugin
2430
run: yarn build
2531

2632
- name: Build backend
27-
run: mage -v buildAll
33+
uses: magefile/mage-action@v1
34+
with:
35+
version: latest
36+
args: buildAll
2837

2938
- name: Sign plugin
3039
run: npx @grafana/toolkit@canary plugin:sign
@@ -95,4 +104,4 @@ jobs:
95104
run: |
96105
echo Publish your plugin to grafana.com/plugins by opening a PR to https://github.com/grafana/grafana-plugin-repository with the following entry:
97106
echo
98-
echo '{ "id": "${{ env.GRAFANA_PLUGIN_ID }}", "type": "${{ env.GRAFANA_PLUGIN_TYPE }}", "url": "https://github.com/${{ github.repository }}", "versions": [ { "version": "${{ env.GRAFANA_PLUGIN_VERSION }}", "commit": "${{ github.sha }}", "url": "https://github.com/${{ github.repository }}", "download": { "any": { "url": "${{ steps.upload-plugin-asset.outputs.browser_download_url }}", "md5": "${{ env.GRAFANA_PLUGIN_CHECKSUM }}" } } } ] }' | jq .
107+
echo '{ "id": "${{ env.GRAFANA_PLUGIN_ID }}", "type": "${{ env.GRAFANA_PLUGIN_TYPE }}", "url": "https://github.com/${{ github.repository }}", "versions": [ { "version": "${{ env.GRAFANA_PLUGIN_VERSION }}", "commit": "${{ github.sha }}", "url": "https://github.com/${{ github.repository }}", "download": { "any": { "url": "${{ steps.upload-plugin-asset.outputs.browser_download_url }}", "md5": "${{ env.GRAFANA_PLUGIN_CHECKSUM }}" } } } ] }' | jq .

0 commit comments

Comments
 (0)