Explorar o código

devnet: automatically run tests

Leo %!s(int64=5) %!d(string=hai) anos
pai
achega
63a601030d
Modificáronse 1 ficheiros con 7 adicións e 1 borrados
  1. 7 1
      devnet/eth-devnet.yaml

+ 7 - 1
devnet/eth-devnet.yaml

@@ -31,7 +31,7 @@ spec:
     spec:
       terminationGracePeriodSeconds: 1
       containers:
-        - name: eth-devnet
+        - name: ganache
           image: eth-node
           command:
             - npx
@@ -46,6 +46,12 @@ spec:
 #          volumeMounts:
 #            - name: eth-devnet-data
 #              mountPath: /data
+        - name: tests
+          image: eth-node
+          command:
+            - /bin/sh
+            - -c
+            - "npm run test && sleep infinity"
 #  volumeClaimTemplates:
 #    - metadata:
 #        name: eth-devnet-data