Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 15 additions & 8 deletions .github/workflows/sdk-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ jobs:

- name: Run E2E tests (Cloud mode)
working-directory: ./test-site
run: node ../bin/vizzly.js run "pnpm test"
# Dependabot pull requests do not receive repository secrets. The
# flag keeps the test suite running locally when the token is absent.
run: node ../bin/vizzly.js run "pnpm test" --allow-no-token
env:
CI: true
VIZZLY_TOKEN: ${{ secrets.VIZZLY_TOKEN }}
Expand Down Expand Up @@ -123,7 +125,7 @@ jobs:

- name: Run E2E tests (Cloud mode)
working-directory: ./clients/vitest
run: ../../bin/vizzly.js run "pnpm run test:e2e"
run: ../../bin/vizzly.js run "pnpm run test:e2e" --allow-no-token
env:
CI: true
VIZZLY_TOKEN: ${{ secrets.VIZZLY_VITEST_CLIENT_TOKEN }}
Expand All @@ -135,6 +137,8 @@ jobs:
name: Storybook SDK
runs-on: ubuntu-latest
timeout-minutes: 8
env:
VIZZLY_TOKEN: ${{ secrets.VIZZLY_STORYBOOK_CLIENT_TOKEN }}

steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
Expand Down Expand Up @@ -194,7 +198,7 @@ jobs:

- name: Run E2E tests (Cloud mode)
working-directory: ./clients/storybook
run: ../../bin/vizzly.js run "pnpm run test:e2e"
run: ../../bin/vizzly.js run "pnpm run test:e2e" --allow-no-token
env:
CI: true
VIZZLY_LOG_LEVEL: debug
Expand All @@ -203,7 +207,7 @@ jobs:
VIZZLY_COMMIT_SHA: ${{ github.event.pull_request.head.sha || github.event.head_commit.id }}

- name: Upload preview
if: success()
if: ${{ success() && env.VIZZLY_TOKEN != '' }}
working-directory: ./clients/storybook
run: ../../bin/vizzly.js preview example-storybook/dist
env:
Expand All @@ -214,6 +218,8 @@ jobs:
name: Static-Site SDK
runs-on: ubuntu-latest
timeout-minutes: 8
env:
VIZZLY_TOKEN: ${{ secrets.VIZZLY_STATIC_SITE_CLIENT_TOKEN }}

steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
Expand Down Expand Up @@ -268,14 +274,15 @@ jobs:

- name: Run E2E tests (Cloud mode)
working-directory: ./clients/static-site
run: ../../bin/vizzly.js run "pnpm run test:e2e"
run: ../../bin/vizzly.js run "pnpm run test:e2e" --allow-no-token
env:
CI: true
VIZZLY_TOKEN: ${{ secrets.VIZZLY_STATIC_SITE_CLIENT_TOKEN }}
VIZZLY_COMMIT_MESSAGE: ${{ github.event.pull_request.head.commit.message || github.event.head_commit.message }}
VIZZLY_COMMIT_SHA: ${{ github.event.pull_request.head.sha || github.event.head_commit.id }}

- name: Upload preview
if: ${{ success() && env.VIZZLY_TOKEN != '' }}
working-directory: ./clients/static-site
run: ../../bin/vizzly.js preview ../../test-site
env:
Expand Down Expand Up @@ -344,7 +351,7 @@ jobs:

- name: Run E2E tests (Cloud mode)
working-directory: ./clients/ember/test-app
run: ../../../bin/vizzly.js run "pnpm exec testem ci --file testem.cjs"
run: ../../../bin/vizzly.js run "pnpm exec testem ci --file testem.cjs" --allow-no-token
env:
CI: true
VIZZLY_TOKEN: ${{ secrets.VIZZLY_EMBER_CLIENT_TOKEN }}
Expand Down Expand Up @@ -401,7 +408,7 @@ jobs:

- name: Run E2E tests (Cloud mode)
working-directory: ./clients/ruby
run: ../../bin/vizzly.js run "VIZZLY_E2E=1 ruby -Ilib:test test/e2e_test.rb"
run: ../../bin/vizzly.js run "VIZZLY_E2E=1 ruby -Ilib:test test/e2e_test.rb" --allow-no-token
env:
CI: true
VIZZLY_TOKEN: ${{ secrets.VIZZLY_RUBY_CLIENT_TOKEN }}
Expand Down Expand Up @@ -446,7 +453,7 @@ jobs:

- name: Run E2E tests (Cloud mode)
working-directory: ./clients/swift
run: ../../bin/vizzly.js run "VIZZLY_E2E=1 swift test --filter VizzlyE2ETests"
run: ../../bin/vizzly.js run "VIZZLY_E2E=1 swift test --filter VizzlyE2ETests" --allow-no-token
env:
CI: true
VIZZLY_TOKEN: ${{ secrets.VIZZLY_SWIFT_CLIENT_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
run: pnpm run build

- name: Run TUI visual tests
run: node bin/vizzly.js run "pnpm run test:tui"
run: node bin/vizzly.js run "pnpm run test:tui" --allow-no-token
env:
CI: true
VIZZLY_TOKEN: ${{ secrets.VIZZLY_TUI_TOKEN }}
Expand Down
Loading