Skip to content

Add intelligent trigger system for demo generation #26

Add intelligent trigger system for demo generation

Add intelligent trigger system for demo generation #26

Workflow file for this run

# GitGlimpse E2E Demo Workflow
# Runs the action against a local example app on every PR.
# Safe: no untrusted user input (PR titles/bodies) is used in run: commands.
name: GitGlimpse Demo
on:
pull_request:
types: [opened, synchronize]
jobs:
demo:
runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: '20'
- uses: pnpm/action-setup@v4
- name: Install dependencies
run: pnpm install
- name: Install Playwright Chromium
run: pnpm --filter @git-glimpse/core exec playwright install chromium --with-deps
- name: Start example app
run: node examples/simple-app/server.js &
- name: Wait for app to be ready
run: |
for i in $(seq 1 15); do
curl -sf http://localhost:3000 && echo "App ready" && exit 0
echo "Waiting... ($i)"
sleep 1
done
echo "App did not become ready" && exit 1
- uses: ./packages/action
with:
preview-url: 'http://localhost:3000'
config-path: examples/simple-app/git-glimpse.config.ts
env:
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}