mirror of
https://github.com/BradNut/personal-website-sveltekit
synced 2025-09-08 23:20:18 +00:00
Moving envs to integration and adding playwright.
Some checks failed
Run_Svelte_Unit_on_PRs / test (push) Has been cancelled
Some checks failed
Run_Svelte_Unit_on_PRs / test (push) Has been cancelled
This commit is contained in:
parent
8735da795a
commit
ac05ca8d24
2 changed files with 32 additions and 25 deletions
40
.github/workflows/svelte_integration.yml
vendored
40
.github/workflows/svelte_integration.yml
vendored
|
|
@ -9,28 +9,6 @@ on:
|
|||
|
||||
workflow_dispatch:
|
||||
|
||||
env:
|
||||
WALLABAG_MAX_ARTICLES: ${{ secrets.WALLABAG_MAX_ARTICLES }}
|
||||
WALLABAG_MAX_PAGES: ${{ secrets.WALLABAG_MAX_PAGES }}
|
||||
WALLABAG_CLIENT_ID: ${{ secrets.WALLABAG_CLIENT_ID }}
|
||||
WALLABAG_CLIENT_SECRET: ${{ secrets.WALLABAG_CLIENT_SECRET }}
|
||||
WALLABAG_USERNAME: ${{ secrets.WALLABAG_USERNAME }}
|
||||
WALLABAG_PASSWORD: ${{ secrets.WALLABAG_PASSWORD }}
|
||||
WALLABAG_URL: ${{ secrets.WALLABAG_URL }}
|
||||
BANDCAMP_USERNAME: ${{ secrets.BANDCAMP_USERNAME }}
|
||||
PUBLIC_SITE_URL: ${{ secrets.PUBLIC_SITE_URL }}
|
||||
PUBLIC_URL: ${{ secrets.PUBLIC_URL }}
|
||||
PUBLIC_UMAMI_DO_NOT_TRACK: ${{ secrets.PUBLIC_UMAMI_DO_NOT_TRACK }}
|
||||
PUBLIC_UMAMI_URL: ${{ secrets.PUBLIC_UMAMI_URL }}
|
||||
PUBLIC_UMAMI_ID: ${{ secrets.PUBLIC_UMAMI_ID }}
|
||||
PAGE_SIZE: ${{ secrets.PAGE_SIZE }}
|
||||
USE_REDIS_CACHE: ${{ secrets.USE_REDIS_CACHE }}
|
||||
REDIS_URI: ${{ secrets.REDIS_URI }}
|
||||
# Disable Redis during E2E to avoid network/DNS failures in CI preview server
|
||||
# This overrides secrets above for this workflow job context
|
||||
# (If you later need Redis in E2E, remove this override.)
|
||||
E2E_USE_REDIS_CACHE: 'false'
|
||||
|
||||
jobs:
|
||||
e2e-tests:
|
||||
name: Run end-to-end tests
|
||||
|
|
@ -54,8 +32,22 @@ jobs:
|
|||
run: pnpm exec playwright install --with-deps
|
||||
- name: Run tests
|
||||
env:
|
||||
# Force Redis off during E2E regardless of repo secrets
|
||||
USE_REDIS_CACHE: ${{ env.E2E_USE_REDIS_CACHE }}
|
||||
WALLABAG_MAX_ARTICLES: ${{ secrets.WALLABAG_MAX_ARTICLES }}
|
||||
WALLABAG_MAX_PAGES: ${{ secrets.WALLABAG_MAX_PAGES }}
|
||||
WALLABAG_CLIENT_ID: ${{ secrets.WALLABAG_CLIENT_ID }}
|
||||
WALLABAG_CLIENT_SECRET: ${{ secrets.WALLABAG_CLIENT_SECRET }}
|
||||
WALLABAG_USERNAME: ${{ secrets.WALLABAG_USERNAME }}
|
||||
WALLABAG_PASSWORD: ${{ secrets.WALLABAG_PASSWORD }}
|
||||
WALLABAG_URL: ${{ secrets.WALLABAG_URL }}
|
||||
BANDCAMP_USERNAME: ${{ secrets.BANDCAMP_USERNAME }}
|
||||
PUBLIC_SITE_URL: ${{ secrets.PUBLIC_SITE_URL }}
|
||||
PUBLIC_URL: ${{ secrets.PUBLIC_URL }}
|
||||
PUBLIC_UMAMI_DO_NOT_TRACK: ${{ secrets.PUBLIC_UMAMI_DO_NOT_TRACK }}
|
||||
PUBLIC_UMAMI_URL: ${{ secrets.PUBLIC_UMAMI_URL }}
|
||||
PUBLIC_UMAMI_ID: ${{ secrets.PUBLIC_UMAMI_ID }}
|
||||
PAGE_SIZE: ${{ secrets.PAGE_SIZE }}
|
||||
USE_REDIS_CACHE: 'false'
|
||||
REDIS_URI: ${{ secrets.REDIS_URI }}
|
||||
run: pnpm test:integration
|
||||
- uses: actions/upload-artifact@v4
|
||||
if: ${{ !cancelled() }}
|
||||
|
|
|
|||
|
|
@ -11,7 +11,22 @@ const config: PlaywrightTestConfig = {
|
|||
testMatch: /(.+\.)?(test|spec)\.[jt]s/,
|
||||
use: {
|
||||
baseURL: 'http://localhost:4173'
|
||||
},
|
||||
// Run on main browsers: Chromium (Chrome), Firefox, WebKit (Safari)
|
||||
projects: [
|
||||
{
|
||||
name: 'chromium',
|
||||
use: { browserName: 'chromium' }
|
||||
},
|
||||
{
|
||||
name: 'firefox',
|
||||
use: { browserName: 'firefox' }
|
||||
},
|
||||
{
|
||||
name: 'webkit',
|
||||
use: { browserName: 'webkit' }
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
export default config;
|
||||
|
|
|
|||
Loading…
Reference in a new issue