66 - ' next/**'
77 - ' .github/workflows/next-ci.yml'
88 - ' .github/workflows/next-release.yml'
9+ - ' .github/workflows/next-soak.yml'
910 pull_request :
1011 paths :
1112 - ' next/**'
1213 - ' .github/workflows/next-ci.yml'
1314 - ' .github/workflows/next-release.yml'
15+ - ' .github/workflows/next-soak.yml'
1416 workflow_dispatch :
1517
1618permissions :
@@ -121,6 +123,12 @@ jobs:
121123 - name : Typecheck, test and build UI
122124 working-directory : next/ui
123125 run : pnpm check
126+ - name : Install Chromium for browser E2E
127+ working-directory : next/ui
128+ run : pnpm --filter @wepush-next/web exec playwright install --with-deps chromium
129+ - name : Run browser E2E
130+ working-directory : next/ui
131+ run : pnpm --filter @wepush-next/web e2e
124132
125133 desktop-and-platform-scripts :
126134 name : Desktop and installers (${{ matrix.os }})
@@ -151,6 +159,7 @@ jobs:
151159 run : |
152160 find next/distribution/src/main/distribution -type f -name '*.sh' -print0 |
153161 xargs -0 -n1 sh -n
162+ next/distribution/src/test/operations-self-test.sh
154163 - name : Validate launchd units and macOS application
155164 if : runner.os == 'macOS'
156165 shell : bash
@@ -159,16 +168,19 @@ jobs:
159168 xargs -0 -n1 plutil -lint
160169 test -f 'next/ui/apps/desktop/release/WePush Next.app/Contents/Info.plist'
161170 codesign --verify --deep --strict --verbose=2 'next/ui/apps/desktop/release/WePush Next.app'
171+ WEPUSH_DESKTOP_SMOKE_TEST=true 'next/ui/apps/desktop/release/WePush Next.app/Contents/MacOS/WePush Next'
162172 - name : Validate Linux application
163173 if : runner.os == 'Linux'
164174 shell : bash
165- run : test -x next/ui/apps/desktop/release/linux-unpacked/wepush-next
175+ run : |
176+ test -x next/ui/apps/desktop/release/linux-unpacked/wepush-next
177+ xvfb-run -a env WEPUSH_DESKTOP_SMOKE_TEST=true next/ui/apps/desktop/release/linux-unpacked/wepush-next
166178 - name : Validate PowerShell, WinSW XML and Windows application
167179 if : runner.os == 'Windows'
168180 shell : pwsh
169181 run : |
170182 $failed = $false
171- Get-ChildItem next/distribution/src/main/distribution -Recurse -Filter *.ps1 | ForEach-Object {
183+ Get-ChildItem next/distribution/src -Recurse -Filter *.ps1 | ForEach-Object {
172184 $tokens = $null
173185 $errors = $null
174186 [System.Management.Automation.Language.Parser]::ParseFile($_.FullName, [ref]$tokens, [ref]$errors) | Out-Null
@@ -185,6 +197,10 @@ jobs:
185197 $failed = $true
186198 }
187199 if ($failed) { exit 1 }
200+ & next/distribution/src/test/operations-self-test.ps1
201+ $env:WEPUSH_DESKTOP_SMOKE_TEST = 'true'
202+ $process = Start-Process 'next/ui/apps/desktop/release/win-unpacked/WePush Next.exe' -Wait -PassThru
203+ if ($process.ExitCode -ne 0) { throw "Desktop smoke check failed with exit code $($process.ExitCode)" }
188204
189205 distribution :
190206 name : Distribution archives
@@ -204,6 +220,8 @@ jobs:
204220 - name : Build WebUI
205221 working-directory : next/ui
206222 run : pnpm install --frozen-lockfile && pnpm --filter @wepush-next/web build
223+ - name : Prepare pinned offline Windows service wrapper
224+ run : next/scripts/prepare-winsw.sh
207225 - name : Build release archives after verified jobs
208226 working-directory : next
209227 run : ./mvnw --batch-mode --no-transfer-progress -DskipTests package
@@ -227,6 +245,8 @@ jobs:
227245 grep -Eq '^wepush-next-[^/]+/sdk/embedded-java-[^/]+\.jar$' <<< "$tar_listing"
228246 grep -Eq '^wepush-next-[^/]+/sdk/provider-http-[^/]+\.jar$' <<< "$tar_listing"
229247 grep -Eq '^wepush-next-[^/]+/sdk/provider-standard-[^/]+\.jar$' <<< "$tar_listing"
248+ grep -Eq '^wepush-next-[^/]+/install/windows/WinSW-x64\.exe$' <<< "$tar_listing"
249+ grep -Eq '^wepush-next-[^/]+/install/windows/WinSW-NOTICE\.txt$' <<< "$tar_listing"
230250 unzip -t "$zip_archive"
231251 - uses : actions/upload-artifact@v4
232252 with :
@@ -237,3 +257,69 @@ jobs:
237257 next/distribution/target/*.sha256
238258 if-no-files-found : error
239259 retention-days : 14
260+
261+ bundled-runtime-packages :
262+ name : Bundled Java runtime (${{ matrix.platform }})
263+ needs : distribution
264+ runs-on : ${{ matrix.os }}
265+ strategy :
266+ fail-fast : false
267+ matrix :
268+ include :
269+ - os : ubuntu-latest
270+ platform : linux
271+ - os : macos-latest
272+ platform : macos
273+ - os : windows-latest
274+ platform : windows
275+ steps :
276+ - uses : actions/checkout@v4
277+ - uses : actions/setup-java@v4
278+ with :
279+ distribution : temurin
280+ java-version : ' 21'
281+ - uses : actions/download-artifact@v4
282+ with :
283+ name : wepush-next-distribution
284+ path : slim
285+ - name : Build and verify Unix bundled-runtime archive
286+ if : runner.os != 'Windows'
287+ shell : bash
288+ run : |
289+ set -euo pipefail
290+ archive=$(find slim -maxdepth 1 -name '*.tar.gz' -print -quit)
291+ mkdir staging output
292+ tar -xzf "$archive" -C staging
293+ root=$(find staging -mindepth 1 -maxdepth 1 -type d -print -quit)
294+ "$JAVA_HOME/bin/jlink" --add-modules ALL-MODULE-PATH --strip-debug --no-header-files --no-man-pages --compress=2 --output "$root/runtime"
295+ "$root/runtime/bin/java" -version
296+ machine=$(uname -m)
297+ case "$machine" in x86_64) arch=x64;; arm64|aarch64) arch=arm64;; *) arch=$machine;; esac
298+ version=$(basename "$root" | sed 's/^wepush-next-//')
299+ if [ "${{ matrix.platform }}" = macos ]; then
300+ ditto -c -k --sequesterRsrc --keepParent "$root" "output/wepush-next-$version-macos-$arch.zip"
301+ else
302+ tar -C staging -czf "output/wepush-next-$version-linux-$arch.tar.gz" "$(basename "$root")"
303+ fi
304+ - name : Build and verify Windows bundled-runtime archive
305+ if : runner.os == 'Windows'
306+ shell : pwsh
307+ run : |
308+ $archive = Get-ChildItem slim -Filter *.zip |
309+ Where-Object { $_.Name -notlike '*java-sdk*' } |
310+ Select-Object -First 1
311+ if (-not $archive) { throw 'Slim Windows distribution archive not found' }
312+ New-Item -ItemType Directory -Force -Path staging,output | Out-Null
313+ Expand-Archive $archive.FullName staging
314+ $root = Get-ChildItem staging -Directory | Select-Object -First 1
315+ & "$env:JAVA_HOME\bin\jlink.exe" --add-modules ALL-MODULE-PATH --strip-debug --no-header-files --no-man-pages --compress=2 --output "$($root.FullName)\runtime"
316+ & "$($root.FullName)\runtime\bin\java.exe" -version
317+ $arch = if ($env:PROCESSOR_ARCHITECTURE -eq 'ARM64') { 'arm64' } else { 'x64' }
318+ $version = $root.Name -replace '^wepush-next-', ''
319+ Compress-Archive $root.FullName "output\wepush-next-$version-windows-$arch.zip"
320+ - uses : actions/upload-artifact@v4
321+ with :
322+ name : wepush-next-runtime-${{ matrix.platform }}
323+ path : output/*
324+ if-no-files-found : error
325+ retention-days : 14
0 commit comments