@grafana/create-plugin 1.3.2 → 1.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ # v1.3.3 (Fri May 19 2023)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - create-plugin: updates for ci workflow [#242](https://github.com/grafana/plugin-tools/pull/242) ([@briangann](https://github.com/briangann))
6
+
7
+ #### Authors: 1
8
+
9
+ - Brian Gann ([@briangann](https://github.com/briangann))
10
+
11
+ ---
12
+
1
13
  # v1.3.2 (Thu May 18 2023)
2
14
 
3
15
  #### 🐛 Bug Fix
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grafana/create-plugin",
3
- "version": "1.3.2",
3
+ "version": "1.3.3",
4
4
  "main": "index.js",
5
5
  "repository": {
6
6
  "directory": "packages/create-plugin",
@@ -64,5 +64,5 @@
64
64
  "engines": {
65
65
  "node": ">=16"
66
66
  },
67
- "gitHead": "27888d28640d45e2bfda1c8acc685a202ab0999a"
67
+ "gitHead": "eb963fd92a3bf34d1835ff9b76343e4f61e36144"
68
68
  }
@@ -39,15 +39,6 @@ jobs:
39
39
  - name: Build frontend
40
40
  run: {{ packageManagerName }} run build
41
41
 
42
- - name: Start grafana docker
43
- run: docker-compose up -d
44
-
45
- - name: Run e2e tests
46
- run: {{ packageManagerName }} run e2e
47
-
48
- - name: Stop grafana docker
49
- run: docker-compose down
50
-
51
42
  - name: Check for backend
52
43
  id: check-for-backend
53
44
  run: |
@@ -60,7 +51,7 @@ jobs:
60
51
  if: steps.check-for-backend.outputs.has-backend == 'true'
61
52
  uses: actions/setup-go@v3
62
53
  with:
63
- go-version: '1.19'
54
+ go-version: '1.20'
64
55
 
65
56
  - name: Test backend
66
57
  if: steps.check-for-backend.outputs.has-backend == 'true'
@@ -75,3 +66,31 @@ jobs:
75
66
  with:
76
67
  version: latest
77
68
  args: buildAll
69
+
70
+ - name: Check for E2E
71
+ id: check-for-e2e
72
+ run: |
73
+ if [ -d "cypress" ]
74
+ then
75
+ echo "has-e2e=true" >> $GITHUB_OUTPUT
76
+ fi
77
+
78
+ - name: Start grafana docker
79
+ if: steps.check-for-e2e.outputs.has-e2e == 'true'
80
+ run: docker-compose up -d
81
+
82
+ - name: Run e2e tests
83
+ if: steps.check-for-e2e.outputs.has-e2e == 'true'
84
+ run: {{ packageManagerName }} run e2e
85
+
86
+ - name: Stop grafana docker
87
+ if: steps.check-for-e2e.outputs.has-e2e == 'true'
88
+ run: docker-compose down
89
+
90
+ - name: Archive E2E output
91
+ uses: actions/upload-artifact@v3
92
+ if: steps.check-for-e2e.outputs.has-e2e == 'true' && steps.run-e2e-tests.outcome != 'success'
93
+ with:
94
+ name: cypress-videos
95
+ path: cypress/videos
96
+ retention-days: 5