Skip to content
Draft
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
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
PAYLOAD_MONGO_CONNECTION_STRING="mongodb://127.0.0.1/payload"
PAYLOAD_SECRET="verysecretkey"
PAYLOAD_PORT=3001

# default user setup, this user will be created if no users exist in the database
# NOTE: this is only used for seeding data, not for autologin
# if these are not set, the admin UI will ask for a user to be created on first login
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ on:
permissions:
id-token: write
contents: read

env:
# Change this to upload the built image to your own organization.
docker_tag_prefix: ghcr.io/tietokilta

jobs:
build:
name: Format, Lint, Check types & Build
Expand Down
36 changes: 36 additions & 0 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Playwright Tests
on:
push:

jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v4

- uses: actions/setup-node@v4
with:
node-version-file: package.json
cache: "pnpm"

- name: Install dependencies
run: pnpm install

- name: Install Playwright Browsers
run: pnpm exec playwright install --with-deps

- name: Build all
run: pnpm build

- name: Run Playwright tests
run: pnpm test

- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report
path: playwright-report/
retention-days: 30
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,12 @@
"lint:fix": "turbo run lint:fix",
"payload": "dotenv -- pnpm -F web payload",
"start": "dotenv -- turbo run start --cache-dir=.turbo",
"test": "turbo run test --cache-dir=.turbo",
"typecheck": "turbo run typecheck --cache-dir=.turbo",
"uploads:clear": "rm -rf apps/web/uploads"
},
"devDependencies": {
"@playwright/test": "catalog:",
"@types/node": "catalog:",
"dotenv-cli": "^10.0.0",
"eslint": "catalog:",
Expand Down
Loading
Loading