From e39bf8b9b052b176e37b9b0924ac27db99856e5d Mon Sep 17 00:00:00 2001 From: Myastr0 <14167316+Myastr0@users.noreply.github.com> Date: Fri, 19 Dec 2025 16:23:01 +0100 Subject: [PATCH] ci(add action scripts build check in ci): add action scripts build check in ci --- .github/workflows/tests.yaml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index d7be268..8415d54 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -22,3 +22,31 @@ jobs: - name: Run tests run: yarn test + + check-action-scripts-build: + name: Check action scripts build + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version-file: '.nvmrc' + cache: 'yarn' + + - name: Install dependencies + run: yarn install --frozen-lockfile + + - name: Build action scripts + run: yarn build:actions + + # Check if the files are in sync with the main code + - name: Check if the files are in sync with the main code + run: | + if ! git diff --exit-code; then + echo "The files are not in sync with the main code" + git diff + exit 1 + fi