From 3d2913d62973f7d1da050c39571f679389f0f5e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B5=D0=B9=20=D0=A1=D0=B0?= =?UTF-8?q?=D0=B1=D0=B8=D0=BB=D0=B8=D0=BD?= Date: Sat, 11 Jul 2026 23:07:15 +0300 Subject: [PATCH] =?UTF-8?q?fix(ci):=20dist=20=D0=BE=D0=B4=D0=B8=D0=BD=20?= =?UTF-8?q?=D1=80=D0=B0=D0=B7=20=D0=B2=20test,=20artifact=20=D0=B2=20push-?= =?UTF-8?q?image?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit npm ci/lint/build только в test; push-image берёт dist через upload/download-artifact. Co-authored-by: Cursor --- .gitea/workflows/ci.yml | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 6636fa4..5b747f9 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -25,7 +25,7 @@ jobs: steps: - uses: actions/checkout@v4 - # Без cache: npm — act_runner v1.0.8 отменяет шаг на распаковке ~546MB (exit -1). + # Без cache: npm — act_runner отменяет шаг на распаковке ~546MB (exit -1). - uses: actions/setup-node@v4 with: node-version: '20' @@ -34,6 +34,14 @@ jobs: - run: npm run lint - run: npm run build + - name: Upload dist for docker job + if: github.event_name == 'push' + uses: actions/upload-artifact@v4 + with: + name: admin-ui-dist + path: dist/ + retention-days: 1 + - name: Mark test complete id: mark_test if: success() @@ -49,14 +57,11 @@ jobs: steps: - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 + - name: Download dist from test job + uses: actions/download-artifact@v4 with: - node-version: '20' - - - name: Build frontend (dist for Dockerfile) - run: | - npm ci - npm run build + name: admin-ui-dist + path: dist - name: Wait for Docker daemon run: bash scripts/ensure-docker-daemon.sh 240 @@ -107,8 +112,6 @@ jobs: if: success() run: echo "ok=1" >> "$GITHUB_OUTPUT" - # act_runner v1.0.8: cancelled steps не валят job; gate-шаги if:always() не выполняются. - # Отдельный job проверяет outputs/result — workflow = failure, deploy-ift не стартует. ci-done: needs: [test, push-image] if: always()