From 5a7c0c9fb6f69c61bbc7fa28beb120ad7a1c4b14 Mon Sep 17 00:00:00 2001 From: Gleb <115395807+The-Gleb@users.noreply.github.com> Date: Fri, 1 Dec 2023 19:27:55 +0300 Subject: [PATCH] update mertricstest.yml add "github.head_ref == 'iter15'" as a run condition for every metricstest --- .github/workflows/mertricstest.yml | 45 ++++++++++++++++++++---------- 1 file changed, 30 insertions(+), 15 deletions(-) diff --git a/.github/workflows/mertricstest.yml b/.github/workflows/mertricstest.yml index 91478e4..366f5bd 100644 --- a/.github/workflows/mertricstest.yml +++ b/.github/workflows/mertricstest.yml @@ -78,7 +78,8 @@ jobs: github.head_ref == 'iter11' || github.head_ref == 'iter12' || github.head_ref == 'iter13' || - github.head_ref == 'iter14' + github.head_ref == 'iter14' || + github.head_ref == 'iter15' run: | metricstest -test.v -test.run=^TestIteration1$ \ -binary-path=cmd/server/server @@ -103,7 +104,8 @@ jobs: github.head_ref == 'iter11' || github.head_ref == 'iter12' || github.head_ref == 'iter13' || - github.head_ref == 'iter14' + github.head_ref == 'iter14' || + github.head_ref == 'iter15' run: | metricstest -test.v -test.run=^TestIteration2[AB]*$ \ -source-path=. \ @@ -123,7 +125,8 @@ jobs: github.head_ref == 'iter11' || github.head_ref == 'iter12' || github.head_ref == 'iter13' || - github.head_ref == 'iter14' + github.head_ref == 'iter14' || + github.head_ref == 'iter15' run: | metricstest -test.v -test.run=^TestIteration3[AB]*$ \ -source-path=. \ @@ -143,7 +146,8 @@ jobs: github.head_ref == 'iter11' || github.head_ref == 'iter12' || github.head_ref == 'iter13' || - github.head_ref == 'iter14' + github.head_ref == 'iter14' || + github.head_ref == 'iter15' run: | SERVER_PORT=$(random unused-port) ADDRESS="localhost:${SERVER_PORT}" @@ -166,7 +170,8 @@ jobs: github.head_ref == 'iter11' || github.head_ref == 'iter12' || github.head_ref == 'iter13' || - github.head_ref == 'iter14' + github.head_ref == 'iter14' || + github.head_ref == 'iter15' run: | SERVER_PORT=$(random unused-port) ADDRESS="localhost:${SERVER_PORT}" @@ -188,7 +193,8 @@ jobs: github.head_ref == 'iter11' || github.head_ref == 'iter12' || github.head_ref == 'iter13' || - github.head_ref == 'iter14' + github.head_ref == 'iter14' || + github.head_ref == 'iter15' run: | SERVER_PORT=$(random unused-port) ADDRESS="localhost:${SERVER_PORT}" @@ -209,7 +215,8 @@ jobs: github.head_ref == 'iter11' || github.head_ref == 'iter12' || github.head_ref == 'iter13' || - github.head_ref == 'iter14' + github.head_ref == 'iter14' || + github.head_ref == 'iter15' run: | SERVER_PORT=$(random unused-port) ADDRESS="localhost:${SERVER_PORT}" @@ -229,7 +236,8 @@ jobs: github.head_ref == 'iter11' || github.head_ref == 'iter12' || github.head_ref == 'iter13' || - github.head_ref == 'iter14' + github.head_ref == 'iter14' || + github.head_ref == 'iter15' run: | SERVER_PORT=$(random unused-port) ADDRESS="localhost:${SERVER_PORT}" @@ -248,7 +256,8 @@ jobs: github.head_ref == 'iter11' || github.head_ref == 'iter12' || github.head_ref == 'iter13' || - github.head_ref == 'iter14' + github.head_ref == 'iter14' || + github.head_ref == 'iter15' run: | SERVER_PORT=$(random unused-port) ADDRESS="localhost:${SERVER_PORT}" @@ -267,7 +276,8 @@ jobs: github.head_ref == 'iter11' || github.head_ref == 'iter12' || github.head_ref == 'iter13' || - github.head_ref == 'iter14' + github.head_ref == 'iter14' || + github.head_ref == 'iter15' run: | SERVER_PORT=$(random unused-port) ADDRESS="localhost:${SERVER_PORT}" @@ -285,7 +295,8 @@ jobs: github.head_ref == 'iter11' || github.head_ref == 'iter12' || github.head_ref == 'iter13' || - github.head_ref == 'iter14' + github.head_ref == 'iter14' || + github.head_ref == 'iter15' run: | SERVER_PORT=$(random unused-port) ADDRESS="localhost:${SERVER_PORT}" @@ -302,7 +313,8 @@ jobs: github.ref == 'refs/heads/main' || github.head_ref == 'iter12' || github.head_ref == 'iter13' || - github.head_ref == 'iter14' + github.head_ref == 'iter14' || + github.head_ref == 'iter15' run: | SERVER_PORT=$(random unused-port) ADDRESS="localhost:${SERVER_PORT}" @@ -318,7 +330,8 @@ jobs: if: | github.ref == 'refs/heads/main' || github.head_ref == 'iter13' || - github.head_ref == 'iter14' + github.head_ref == 'iter14' || + github.head_ref == 'iter15' run: | SERVER_PORT=$(random unused-port) ADDRESS="localhost:${SERVER_PORT}" @@ -333,7 +346,8 @@ jobs: - name: "Code increment #14" if: | github.ref == 'refs/heads/main' || - github.head_ref == 'iter14' + github.head_ref == 'iter14' || + github.head_ref == 'iter15' run: | SERVER_PORT=$(random unused-port) ADDRESS="localhost:${SERVER_PORT}" @@ -349,6 +363,7 @@ jobs: - name: "Code increment #14 (race detection)" if: | github.ref == 'refs/heads/main' || - github.head_ref == 'iter14' + github.head_ref == 'iter14' || + github.head_ref == 'iter15' run: | go test -v -race ./...