feat: Simple bot protection that should elimiminate most of the spam on our forms #10693
Workflow file for this run
This file contains 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: Visual Regression Tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
# cancel in-progress runs on new commits to same PR (gitub.event.number) | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.number || github.sha }} | |
cancel-in-progress: true | |
permissions: | |
contents: read # to fetch code (actions/checkout) | |
jobs: | |
design-system: | |
timeout-minutes: 20 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
#with: | |
#ref: ${{ github.event.pull_request.head.sha || github.sha }} # HEAD commit instead of merge commit | |
- uses: ./.github/actions/ci-setup | |
- name: Build Storybook for Design System | |
run: pnpm run --filter=@webstudio-is/design-system storybook:build | |
- name: Lost Pixel | |
uses: lost-pixel/[email protected] | |
env: | |
LOST_PIXEL_CONFIG_DIR: packages/design-system | |
LOST_PIXEL_API_KEY: 8b76db6c-b9f0-46d1-982f-70900a02690a | |
builder: | |
timeout-minutes: 20 | |
runs-on: ubuntu-latest | |
env: | |
DATABASE_URL: postgres:// | |
AUTH_SECRET: test | |
steps: | |
- uses: actions/checkout@v4 | |
#with: | |
#ref: ${{ github.event.pull_request.head.sha || github.sha }} # HEAD commit instead of merge commit | |
- uses: ./.github/actions/ci-setup | |
- name: Build Storybook for Builder | |
run: pnpm run --filter=@webstudio-is/builder storybook:build | |
- name: Lost Pixel | |
uses: lost-pixel/[email protected] | |
env: | |
LOST_PIXEL_CONFIG_DIR: apps/builder | |
LOST_PIXEL_API_KEY: 8b76db6c-b9f0-46d1-982f-70900a02690a | |
finalize: | |
needs: [builder, design-system] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Lost Pixel Finalize | |
uses: lost-pixel/[email protected] | |
env: | |
LOST_PIXEL_CONFIG_DIR: apps/builder | |
LOST_PIXEL_API_KEY: 8b76db6c-b9f0-46d1-982f-70900a02690a | |
with: | |
FINALIZE: true |