-
Notifications
You must be signed in to change notification settings - Fork 24
63 lines (53 loc) · 1.99 KB
/
smoke-test.yml
File metadata and controls
63 lines (53 loc) · 1.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Smoke Test
on:
push:
branches: [main]
workflow_dispatch:
inputs:
app:
description: 'App to test (e.g. basic-integration/next-js/15-app-router-todo)'
required: false
default: 'basic-integration/next-js/15-app-router-todo'
type: string
permissions:
contents: read
jobs:
smoke-test:
name: Smoke Test (${{ inputs.app || 'basic-integration/next-js/15-app-router-todo' }})
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout wizard
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
- name: Checkout wizard-workbench
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
repository: PostHog/wizard-workbench
path: wizard-workbench
- name: Install pnpm
uses: pnpm/action-setup@eae0cfeb286e66ffb5155f1a79b90583a127a68b # v2.4.1
with:
version: 10.23.0
run_install: false
- name: Set up Node
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version-file: 'package.json'
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Install sandbox dependencies
run: sudo apt-get update && sudo apt-get install -y bubblewrap socat
- name: Run smoke test
env:
POSTHOG_PERSONAL_API_KEY: ${{ secrets.GH_APP_POSTHOG_WIZARD_CI_BOT_POSTHOG_PERSONAL_KEY }}
WIZARD_WORKBENCH_ROOT: ${{ github.workspace }}/wizard-workbench
SMOKE_TEST_APP: ${{ inputs.app || 'basic-integration/next-js/15-app-router-todo' }}
run: ./scripts/smoke-test-ci.sh "$SMOKE_TEST_APP"
- name: Upload artifacts
if: always()
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: smoke-test-artifacts
path: /tmp/wizard-smoke.*/**
if-no-files-found: ignore