works #4
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
| name: Live Smoke Run | |
| on: | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| inputs: | |
| timeout: | |
| description: "Minutes to keep the session alive" | |
| required: false | |
| default: "10" | |
| tunnel: | |
| description: "Exposure mode: none, cloudflare, or tor" | |
| required: false | |
| default: "cloudflare" | |
| service-mode: | |
| description: "Service cluster mode: minimal or full" | |
| required: false | |
| default: "minimal" | |
| port: | |
| description: "Main BrowserBox service port" | |
| required: false | |
| default: "8080" | |
| hostname: | |
| description: "Hostname for local setup (tunnel=none)" | |
| required: false | |
| default: "localhost" | |
| email: | |
| description: "Email used for BrowserBox setup" | |
| required: false | |
| default: "actions@browserbox.io" | |
| install-doc-viewer: | |
| description: "Install document viewer dependencies (true or false)" | |
| required: false | |
| default: "false" | |
| status-mode: | |
| description: "Optional BrowserBox STATUS_MODE override" | |
| required: false | |
| default: "" | |
| jobs: | |
| live-smoke: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| issues: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Create tracking issue | |
| id: tracking | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| run: | | |
| issue_url="$( | |
| gh issue create \ | |
| --repo "${{ github.repository }}" \ | |
| --title "Live BrowserBox run ${{ github.run_id }}" \ | |
| --body "Tracking BrowserBox login link for run ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}." | |
| )" | |
| issue_number="${issue_url##*/}" | |
| echo "issue-number=${issue_number}" >> "$GITHUB_OUTPUT" | |
| echo "::notice title=BrowserBox Tracking Issue::${issue_url}" | |
| - name: Run BrowserBox | |
| id: bbx | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| uses: ./ | |
| with: | |
| license-key: ${{ secrets.BBX_LICENSE_KEY }} | |
| tunnel: ${{ github.event.inputs.tunnel || 'cloudflare' }} | |
| service-mode: ${{ github.event.inputs.service-mode || 'minimal' }} | |
| port: ${{ github.event.inputs.port || '8080' }} | |
| hostname: ${{ github.event.inputs.hostname || 'localhost' }} | |
| email: ${{ github.event.inputs.email || 'actions@browserbox.io' }} | |
| install-doc-viewer: ${{ github.event.inputs.install-doc-viewer || 'false' }} | |
| status-mode: ${{ github.event.inputs.status-mode || '' }} | |
| timeout: ${{ github.event.inputs.timeout || '10' }} | |
| broadcast-issue-number: ${{ steps.tracking.outputs.issue-number }} |