From cfc391b3558c3fd668d2fd429027719fd5fcffd4 Mon Sep 17 00:00:00 2001 From: Patrick Pfeiffer Date: Tue, 22 Oct 2024 09:57:56 +0200 Subject: [PATCH 1/3] fix(ci): only run converted-types-check if types changed --- .github/workflows/backend-converted-types-check.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/backend-converted-types-check.yml b/.github/workflows/backend-converted-types-check.yml index c6f09fdac..a59593a02 100644 --- a/.github/workflows/backend-converted-types-check.yml +++ b/.github/workflows/backend-converted-types-check.yml @@ -2,14 +2,14 @@ name: Backend-Converted-Types-Check on: push: paths: - - 'backend/**' + - 'backend/pkg/api/types/**' - 'frontend/types/api/**' branches: - main - staging pull_request: paths: - - 'backend/**' + - 'backend/pkg/api/types/**' - 'frontend/types/api/**' branches: - '*' @@ -41,6 +41,7 @@ jobs: newHash=$(find ../frontend/types/api -type f -print0 | sort -z | xargs -0 sha1sum | sha256sum | head -c 64) if [ "$currHash" != "$newHash" ]; then echo "frontend-types have changed, please commit the changes" + git diff --stat exit 1 fi From d817615d763af405c2aa5f6cbc651655cf9ab420 Mon Sep 17 00:00:00 2001 From: Patrick Pfeiffer Date: Tue, 22 Oct 2024 09:59:43 +0200 Subject: [PATCH 2/3] test types-checker-ci --- frontend/types/api/validator_dashboard.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/types/api/validator_dashboard.ts b/frontend/types/api/validator_dashboard.ts index 43eed6497..24e150a1b 100644 --- a/frontend/types/api/validator_dashboard.ts +++ b/frontend/types/api/validator_dashboard.ts @@ -1,3 +1,4 @@ + // Code generated by tygo. DO NOT EDIT. /* eslint-disable */ import type { ValidatorStateCounts, PeriodicValues, ClElValue, ChartHistorySeconds, ApiDataResponse, StatusCount, ApiPagingResponse, Luck, ChartData, ValidatorHistoryDuties, Address, PubKey, Hash, PercentageDetails } from './common' From 43546b36929b50ac0b5a51ddc2ba9746372f3dbf Mon Sep 17 00:00:00 2001 From: Patrick Pfeiffer Date: Tue, 22 Oct 2024 10:18:06 +0200 Subject: [PATCH 3/3] test types-checker-ci --- frontend/types/api/validator_dashboard.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/frontend/types/api/validator_dashboard.ts b/frontend/types/api/validator_dashboard.ts index 24e150a1b..43eed6497 100644 --- a/frontend/types/api/validator_dashboard.ts +++ b/frontend/types/api/validator_dashboard.ts @@ -1,4 +1,3 @@ - // Code generated by tygo. DO NOT EDIT. /* eslint-disable */ import type { ValidatorStateCounts, PeriodicValues, ClElValue, ChartHistorySeconds, ApiDataResponse, StatusCount, ApiPagingResponse, Luck, ChartData, ValidatorHistoryDuties, Address, PubKey, Hash, PercentageDetails } from './common'