Kaynağa Gözat

node: run all Go tests in CI

commit-id:baa9f712
Leo 3 yıl önce
ebeveyn
işleme
8e695c674a
2 değiştirilmiş dosya ile 3 ekleme ve 4 silme
  1. 3 3
      .github/workflows/build.yml
  2. 0 1
      node/pkg/vaa/types_test.go

+ 3 - 3
.github/workflows/build.yml

@@ -46,9 +46,8 @@ jobs:
           go-version: '1.17.5'
       - run: make node
 
-  # Run linters. This is just Go and Protobuf for now, but could include things
-  # like rustfmt as well.
-  lint:
+  # Run linters, Go tests and other outside-of-Tilt things.
+  lint-and-tests:
     # The linter is slow enough that we want to run it on the self-hosted runner
     runs-on: tilt-kube-public
     concurrency:
@@ -60,3 +59,4 @@ jobs:
         with:
           go-version: '1.17.5'
       - run: make generate && ./lint.sh
+      - run: cd node && go test -v ./...

+ 0 - 1
node/pkg/vaa/types_test.go

@@ -43,7 +43,6 @@ func TestSerializeDeserialize(t *testing.T) {
 			vaaData, err := test.vaa.Marshal()
 			require.NoError(t, err)
 
-			println(hex.EncodeToString(vaaData))
 			vaaParsed, err := Unmarshal(vaaData)
 			require.NoError(t, err)