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
19 changes: 19 additions & 0 deletions .github/workflows/changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ on:
value: ${{ jobs.source.outputs.scripts }}
website_only:
value: ${{ jobs.source.outputs.website_only }}
website_tests:
value: ${{ jobs.source.outputs.website_tests }}
install:
value: ${{ jobs.source.outputs.install }}
actionlint:
Expand Down Expand Up @@ -187,6 +189,7 @@ jobs:
install: ${{ steps.filter.outputs.install }}
k8s: ${{ steps.filter.outputs.k8s }}
website_only: ${{ steps.filter.outputs.website == 'true' && steps.filter.outputs.not_website == 'false' }}
website_tests: ${{ steps.website_filter.outputs.website_tests }}
actionlint: ${{ steps.filter.outputs.actionlint }}
prettier: ${{ steps.filter.outputs.prettier }}
test-yml: ${{ steps.filter.outputs.test-yml }}
Expand Down Expand Up @@ -341,6 +344,22 @@ jobs:
- ".github/workflows/unit_windows.yml"
- ".github/workflows/changes.yml"

# Separate step because `predicate-quantifier` applies to every filter, and
# `some-with-excludes` would make negation-only filters like `not_website` never match.
- uses: dorny/paths-filter@ceb8a2b8f2d89434be7ff52d3de7ec3738c5cc9d # v4.0.3
id: website_filter
with:
base: ${{ env.BASE_SHA }}
ref: ${{ env.HEAD_SHA }}
predicate-quantifier: some-with-excludes
filters: |
website_tests:
- "website/**"
- "!website/cue/**"
- ".github/workflows/website-tests.yml"
- ".github/actions/install-vrl-doc-builder/**"
- ".github/workflows/changes.yml"

# Detects changes that are specific to integration tests
int_tests:
runs-on: ubuntu-24.04
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,8 @@ jobs:
wasm-pack build --target web --out-dir public/pkg

test-website:
if: ${{ github.event_name == 'merge_group' }}
if: ${{ github.event_name == 'merge_group' && (needs.changes.outputs.website_tests == 'true' || needs.changes.outputs.test-yml == 'true') }}
needs: changes
permissions:
contents: read
id-token: write
Expand Down
3 changes: 2 additions & 1 deletion website/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ export default defineConfig({
projects: [
{ name: "chromium", use: { ...devices["Desktop Chrome"] } },
{ name: "firefox", use: { ...devices["Desktop Firefox"] } },
{ name: "webkit", use: { ...devices["Desktop Safari"] } }
// WebKit is several times slower than Chromium on CI and can exceed the default 30s.
{ name: "webkit", timeout: 60_000, use: { ...devices["Desktop Safari"] } }
],
webServer: {
command: "python3 -m http.server 4173 --bind 127.0.0.1 --directory public",
Expand Down
Loading