mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-09-13 18:46:20 +05:00
* ci: update pull request actions for node 24 Что: - Обновлены actions checkout, setup-node и pnpm/action-setup в Pull Request workflow до v5. Зачем: - Убрать Node.js 20 deprecation annotations из pr-check jobs и использовать actions с Node.js 24 runtime. Риски: - Не выявлены; изменение ограничено версиями GitHub Actions без изменения команд workflow. Проверки: - Команды и результаты: gh api action.yml для actions/checkout@v5, actions/setup-node@v5 и pnpm/action-setup@v5 подтвердил runs.using node24; git diff --check прошел; ruby YAML parse .github/workflows/pull-request.yml вернул yaml ok; go run github.com/rhysd/actionlint/cmd/actionlint@latest .github/workflows/pull-request.yml прошел без diagnostics; независимый Agent Flow reviewer вернул pass. - Ограничения: Локальные build/test/typecheck не запускались, потому что изменение касается только GitHub Actions workflow versions. What: - Updated checkout, setup-node, and pnpm/action-setup actions in the Pull Request workflow to v5. Why: - Remove Node.js 20 deprecation annotations from pr-check jobs and use actions with the Node.js 24 runtime. Risks: - None identified; the change is limited to GitHub Actions versions without changing workflow commands. Checks: - Commands and results: gh api action.yml for actions/checkout@v5, actions/setup-node@v5, and pnpm/action-setup@v5 confirmed runs.using node24; git diff --check passed; ruby YAML parse .github/workflows/pull-request.yml returned yaml ok; go run github.com/rhysd/actionlint/cmd/actionlint@latest .github/workflows/pull-request.yml passed with no diagnostics; independent Agent Flow reviewer returned pass. - Limitations: Local build/test/typecheck were not run because the change only touches GitHub Actions workflow versions. * ci: update format actions for node 24 Что: - Обновлены actions/checkout и pinned autofix-ci/action в format workflow до Node.js 24-compatible версий. Зачем: - Убрать оставшуюся Node.js 20 deprecation annotation из autofix.ci после исправления pr-check workflow. Риски: - Не выявлены; изменение ограничено версиями GitHub Actions без изменения formatter-команды. Проверки: - Команды и результаты: gh api action.yml для autofix-ci/action@v1.3.4 подтвердил runs.using node24; git ls-remote подтвердил SHA c5b2d67aa2274e7b5a18224e8171550871fc7e4a для tag v1.3.4; git diff --check прошел; ruby YAML parse для pull-request.yml и format.yml вернул yaml ok; go run github.com/rhysd/actionlint/cmd/actionlint@latest .github/workflows/pull-request.yml .github/workflows/format.yml прошел без diagnostics; независимый Agent Flow reviewer подтвердил корректность полного local diff и отметил, что fix нужно опубликовать. - Ограничения: Локальные build/test/typecheck не запускались, потому что изменение касается только GitHub Actions workflow versions. What: - Updated actions/checkout and the pinned autofix-ci/action in the format workflow to Node.js 24-compatible versions. Why: - Remove the remaining Node.js 20 deprecation annotation from autofix.ci after fixing the pr-check workflow. Risks: - None identified; the change is limited to GitHub Actions versions without changing the formatter command. Checks: - Commands and results: gh api action.yml for autofix-ci/action@v1.3.4 confirmed runs.using node24; git ls-remote confirmed SHA c5b2d67aa2274e7b5a18224e8171550871fc7e4a for tag v1.3.4; git diff --check passed; ruby YAML parse for pull-request.yml and format.yml returned yaml ok; go run github.com/rhysd/actionlint/cmd/actionlint@latest .github/workflows/pull-request.yml .github/workflows/format.yml passed with no diagnostics; independent Agent Flow reviewer confirmed the full local diff is correct and noted that the fix needed to be published. - Limitations: Local build/test/typecheck were not run because the change only touches GitHub Actions workflow versions.
52 lines
1.3 KiB
YAML
52 lines
1.3 KiB
YAML
name: Pull Request
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [main, canary]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
pr-check:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
job: [build, test, typecheck]
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
- uses: pnpm/action-setup@v5
|
|
- uses: actions/setup-node@v5
|
|
with:
|
|
node-version: 24.4.0
|
|
cache: "pnpm"
|
|
|
|
- name: Install Nixpacks
|
|
if: matrix.job == 'test'
|
|
run: |
|
|
export NIXPACKS_VERSION=1.41.0
|
|
curl -sSL https://nixpacks.com/install.sh | bash
|
|
echo "Nixpacks installed $NIXPACKS_VERSION"
|
|
|
|
- name: Install Railpack
|
|
if: matrix.job == 'test'
|
|
run: |
|
|
export RAILPACK_VERSION=0.15.4
|
|
curl -sSL https://railpack.com/install.sh | bash
|
|
echo "Railpack installed $RAILPACK_VERSION"
|
|
|
|
- name: Add build tools to PATH
|
|
if: matrix.job == 'test'
|
|
run: echo "$HOME/.local/bin" >> $GITHUB_PATH
|
|
|
|
- name: Initialize Docker Swarm
|
|
if: matrix.job == 'test'
|
|
run: |
|
|
docker swarm init
|
|
docker network create --driver overlay dokploy-network || true
|
|
echo "✅ Docker Swarm initialized"
|
|
|
|
- run: pnpm install --frozen-lockfile
|
|
- run: pnpm server:build
|
|
- run: pnpm ${{ matrix.job }}
|