Skip to content

Commit 86cfd7a

Browse files
committed
Lint plugin before creating release
1 parent d42127d commit 86cfd7a

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

.github/workflows/release.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,19 @@ jobs:
7878
md5sum ${{ steps.metadata.outputs.archive }} > ${{ steps.metadata.outputs.archive-checksum }}
7979
echo "::set-output name=checksum::$(cat ./${{ steps.metadata.outputs.archive-checksum }} | cut -d' ' -f1)"
8080
81+
- name: Setup Go environment
82+
uses: actions/setup-go@v2
83+
with:
84+
go-version: '1.14.12'
85+
86+
- name: Lint plugin
87+
run: |
88+
git clone https://github.com/grafana/plugin-validator;
89+
pushd ./plugin-validator/cmd/plugincheck;
90+
go install
91+
popd
92+
plugincheck ${{ steps.metadata.outputs.archive }};
93+
8194
- name: Create release
8295
id: create_release
8396
uses: actions/create-release@v1
@@ -111,19 +124,6 @@ jobs:
111124
asset_name: ${{ steps.metadata.outputs.archive-checksum }}
112125
asset_content_type: text/plain
113126

114-
- name: Setup Go environment
115-
uses: actions/setup-go@v2
116-
with:
117-
go-version: '1.14.12'
118-
119-
- name: Lint plugin
120-
run: |
121-
git clone https://github.com/grafana/plugin-validator;
122-
pushd ./plugin-validator/cmd/plugincheck;
123-
go install
124-
popd
125-
plugincheck ${{ steps.upload-plugin-asset.outputs.browser_download_url }};
126-
127127
- name: Publish to Grafana.com
128128
run: |
129129
echo Publish your plugin to grafana.com/plugins by opening a PR to https://github.com/grafana/grafana-plugin-repository with the following entry:

0 commit comments

Comments
 (0)