From 73f152e61e437ebdb19af04724295994387b8a18 Mon Sep 17 00:00:00 2001 From: Marek Siarkowicz Date: Fri, 24 Mar 2023 13:26:24 +0100 Subject: [PATCH] Run e2e tests in CI Signed-off-by: Marek Siarkowicz --- .github/workflows/tests.yaml | 4 ++++ tests/e2e/etcd_config_test.go | 1 + 2 files changed, 5 insertions(+) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 7f30f14d6..feeb57cb4 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -15,6 +15,7 @@ jobs: - linux-amd64-unit-4-cpu-race - all-build - linux-amd64-grpcproxy + - linux-amd64-e2e - linux-386-unit steps: - uses: actions/checkout@v2 @@ -62,6 +63,9 @@ jobs: linux-amd64-grpcproxy) PASSES='build grpcproxy' CPU='4' RACE='true' ./test ;; + linux-amd64-e2e) + GOARCH=amd64 PASSES='build release e2e' ./test + ;; linux-386-unit) GOARCH=386 PASSES='unit' ./test ;; diff --git a/tests/e2e/etcd_config_test.go b/tests/e2e/etcd_config_test.go index b45162824..ae3c7f9bb 100644 --- a/tests/e2e/etcd_config_test.go +++ b/tests/e2e/etcd_config_test.go @@ -28,6 +28,7 @@ import ( const exampleConfigFile = "../../etcd.conf.yml.sample" func TestEtcdExampleConfig(t *testing.T) { + defer os.RemoveAll("default.etcd") proc, err := spawnCmd([]string{binDir + "/etcd", "--config-file", exampleConfigFile}) if err != nil { t.Fatal(err)