Skip to content

Commit

Permalink
Merge pull request #18 from spektrumrf/dev
Browse files Browse the repository at this point in the history
Updated db endpoints
  • Loading branch information
jonaswesterlund authored Mar 13, 2024
2 parents d6ed931 + 07f901b commit 5b06aba
Show file tree
Hide file tree
Showing 57 changed files with 5,297 additions and 4,585 deletions.
13 changes: 0 additions & 13 deletions .eslintignore

This file was deleted.

20 changes: 0 additions & 20 deletions .eslintrc.cjs

This file was deleted.

12 changes: 4 additions & 8 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
name: Playwright Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
env:
PUBLIC_ENV: "DEV"
RUBEN_USERNAME: ${{secrets.RUBEN_USERNAME}}
RUBEN_PASSWORD: ${{secrets.RUBEN_PASSWORD}}
ADMIN_EMAIL: ${{secrets.ADMIN_EMAIL}}
ADMIN_PASSWORD: ${{secrets.ADMIN_PASSWORD}}
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
Expand All @@ -22,10 +18,10 @@ jobs:
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
run: PUBLIC_ENV=$PUBLIC_ENV RUBEN_USERNAME=$RUBEN_USERNAME RUBEN_PASSWORD=$RUBEN_PASSWORD ADMIN_EMAIL=$ADMIN_EMAIL ADMIN_PASSWORD=$ADMIN_PASSWORD npx playwright test
run: npx playwright test
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: test-results/
path: playwright-report/
retention-days: 30
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,10 @@ node_modules
.env
.env.*
!.env.example
/test-results
/playwright-report
migrate.ts
/images
/test-results/
/playwright-report/
/blob-report/
/playwright/.cache/
2 changes: 1 addition & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"singleQuote": true,
"trailingComma": "none",
"printWidth": 100,
"pluginSearchDirs": ["."],
"plugins": ["prettier-plugin-svelte"],
"overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }]
}
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ The app is deployed through [Sveltekit](https://kit.svelte.dev) which combines t

The application connects to a [Pocketbase](https://pocketbase.io)-database managing persistence for the app users.

The app is styled with [Tailwind](https://tailwindcss.com) with [DaisyUI](https://daisyui.com) as a component library.
The app is styled with [Tailwind](https://tailwindcss.com) with [DaisyUI](https://daisyui.com) as a component library.

The app with database is hosted on Hetzner on a Coolify instance.
7 changes: 7 additions & 0 deletions e2e/year.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { test, expect } from '@playwright/test';

test('redirects to current year', async ({ page }) => {
await page.goto('/');

await expect(page).toHaveURL('/2024');
});
Loading

0 comments on commit 5b06aba

Please sign in to comment.