Repository navigation
Conversation
Comment on lines
+14
to
+69
| runs-on: ${{ matrix.os }} | ||
| timeout-minutes: 30 | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| include: | ||
| - os: ubuntu-latest | ||
| platform: linux | ||
| - os: macos-latest | ||
| platform: mac | ||
| - os: windows-latest | ||
| platform: win | ||
| env: | ||
| # The builds are unsigned until the signing credentials exist. | ||
| CSC_IDENTITY_AUTO_DISCOVERY: "false" | ||
| PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: "1" | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: oven-sh/setup-bun@v2 | ||
| with: | ||
| bun-version: latest | ||
|
|
||
| - run: bun install | ||
| - run: bun run dist:desktop:${{ matrix.platform }} | ||
|
|
||
| - uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: metabase-rde-${{ matrix.platform }} | ||
| path: | | ||
| packages/desktop/release/*.AppImage | ||
| packages/desktop/release/*.dmg | ||
| packages/desktop/release/*.exe | ||
| packages/desktop/release/*.yml | ||
| !packages/desktop/release/builder-debug.yml | ||
| if-no-files-found: error | ||
|
|
||
| # The AppImage extracts itself instead of mounting, so the job needs no FUSE; it still sets | ||
| # APPIMAGE, which the updater needs. | ||
| - name: Smoke the packaged app | ||
| if: matrix.platform == 'linux' | ||
| working-directory: packages/desktop | ||
| env: | ||
| APPIMAGE_EXTRACT_AND_RUN: "1" | ||
| RDE_EVIDENCE_DIR: ${{ runner.temp }}/evidence | ||
| run: | | ||
| RDE_PACKAGED_APP="$(ls "$PWD"/release/*.AppImage)" | ||
| export RDE_PACKAGED_APP | ||
| xvfb-run -a --server-args="-screen 0 1440x900x24" bun scripts/smoke.ts | ||
| xvfb-run -a --server-args="-screen 0 1440x900x24" bun scripts/release-smoke.ts | ||
|
|
||
| - uses: actions/upload-artifact@v4 | ||
| if: always() && matrix.platform == 'linux' | ||
| with: | ||
| name: desktop-smoke-evidence | ||
| path: ${{ runner.temp }}/evidence | ||
| if-no-files-found: ignore |
| const code = `code-${randomUUID()}`; | ||
| state.codes.add(code); | ||
| const callback = new URLSearchParams({ code, state: clientState }); | ||
| response.writeHead(HTTP_FOUND, { location: `${redirectUri}?${callback.toString()}` }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.