Browse Source

#87 - Added test step in credential-issuer pipeline

Elisa Cutrin 1 year ago
parent
commit
3758c157c0
1 changed files with 43 additions and 0 deletions
  1. 43 0
      apps/credential-issuer/credential-issuer.gopipeline.json

+ 43 - 0
apps/credential-issuer/credential-issuer.gopipeline.json

@@ -22,6 +22,49 @@
22 22
       "environment_variables": [],
23 23
       "jobs": [
24 24
         {
25
+          "name": "test",
26
+          "environment_variables": [],
27
+          "tabs": [],
28
+          "resources": ["node"],
29
+          "artifacts": [],
30
+          "properties": [],
31
+          "run_instance_count": null,
32
+          "timeout": 0,
33
+          "tasks": [
34
+            {
35
+              "type": "exec",
36
+              "run_if": "passed",
37
+              "on_cancel" : null,
38
+              "command": "npm",
39
+              "arguments": [
40
+                "install"
41
+              ],
42
+              "working_directory": "apps/credential-issuer"
43
+            },
44
+            {
45
+              "type": "exec",
46
+              "run_if": "passed",
47
+              "on_cancel" : null,
48
+              "command": "npm",
49
+              "arguments": [
50
+                "run",
51
+                "lint"
52
+              ],
53
+              "working_directory": "apps/credential-issuer"
54
+            },
55
+            {
56
+              "type": "exec",
57
+              "run_if": "passed",
58
+              "on_cancel" : null,
59
+              "command": "npm",
60
+              "arguments": [
61
+                "test"
62
+              ],
63
+              "working_directory": "apps/credential-issuer"
64
+            }
65
+          ]
66
+        },
67
+        {
25 68
           "name": "deploy",
26 69
           "environment_variables": [],
27 70
           "tabs": [],