Skip to content

Commit

Permalink
run e2e tests just on chrome except on main branch (#1286)
Browse files Browse the repository at this point in the history
Co-authored-by: Cornelius Roemer <cornelius.roemer@gmail.com>
  • Loading branch information
theosanderson and corneliusroemer committed Mar 8, 2024
1 parent 2cd68cb commit b478d98
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/e2e-k3d.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ jobs:

runs-on: ubuntu-latest

env:
ALL_BROWSERS: ${{ github.ref == 'refs/heads/main' && 'true' || 'false' }}

steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand Down
6 changes: 4 additions & 2 deletions website/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,19 @@ export default defineConfig({
globalSetup: './tests/playwrightSetup.ts',

projects: [

{
name: 'chromium',
use: { ...devices['Desktop Chrome'] },
},
{
...process.env.ALL_BROWSERS === 'true' ? [{
name: 'firefox',
use: { ...devices['Desktop Firefox'] },
},
{
name: 'webkit',
use: { ...devices['Desktop Safari'] },
},
}] : [],

],
});

0 comments on commit b478d98

Please sign in to comment.