Browse Source

devnet: automatically run tests

Leo 5 năm trước cách đây
mục cha
commit
63a601030d
1 tập tin đã thay đổi với 7 bổ sung1 xóa
  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