Skip to content

Commit 2eb3131

Browse files
authored
Merge pull request #485 from dreamfactorysoftware/develop
perf: event-script form opens instantly (services_only path + release sync)
2 parents 111d77f + 3bd9cf4 commit 2eb3131

192 files changed

Lines changed: 2843 additions & 1183 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/e2e.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: E2E (Playwright)
2+
3+
# Runs only on-demand for now. Spinning a full DreamFactory stack in GH
4+
# Actions requires a shared df-docker image + secrets wiring that doesn't
5+
# exist yet; wiring it up is tracked as a follow-up. Until then this job
6+
# is driven by manual dispatch (pass a target URL) or a nightly cron
7+
# against a long-running instance (URL in the E2E_NIGHTLY_URL secret).
8+
on:
9+
schedule:
10+
- cron: '0 7 * * *'
11+
workflow_dispatch:
12+
inputs:
13+
target_url:
14+
description: 'Base URL to run E2E against (e.g. http://crucible.example:8080)'
15+
required: true
16+
17+
jobs:
18+
smoke:
19+
runs-on: ubuntu-latest
20+
timeout-minutes: 20
21+
22+
steps:
23+
- uses: actions/checkout@v4
24+
25+
- uses: actions/setup-node@v4
26+
with:
27+
node-version: 22.x
28+
cache: 'npm'
29+
30+
- run: npm ci
31+
32+
- name: Install Playwright Browsers
33+
run: npx playwright install chromium --with-deps
34+
35+
- name: Resolve target URL
36+
id: target
37+
run: |
38+
if [ -n "${{ github.event.inputs.target_url }}" ]; then
39+
echo "url=${{ github.event.inputs.target_url }}" >> "$GITHUB_OUTPUT"
40+
else
41+
echo "url=${{ secrets.E2E_NIGHTLY_URL }}" >> "$GITHUB_OUTPUT"
42+
fi
43+
44+
- name: Run Playwright tests
45+
env:
46+
PLAYWRIGHT_BASE_URL: ${{ steps.target.outputs.url }}
47+
DF_ADMIN_EMAIL: ${{ secrets.E2E_ADMIN_EMAIL || 'admin@dreamfactory.com' }}
48+
DF_ADMIN_PASSWORD: ${{ secrets.E2E_ADMIN_PASSWORD || 'passwordpassword' }}
49+
run: npm run e2e
50+
51+
- uses: actions/upload-artifact@v4
52+
if: always()
53+
with:
54+
name: playwright-report
55+
path: playwright-report/
56+
retention-days: 7

.github/workflows/node.js.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,8 @@ jobs:
2525
node-version: ${{ matrix.node-version }}
2626
cache: 'npm'
2727
- run: npm ci
28+
# `test:ci` runs only the specs that currently pass. The rest are
29+
# quarantined by jest.config.ci.js until the @ngneat/transloco ESM
30+
# migration is completed. New tests should be added to that config.
31+
- run: npm run test:ci
2832
- run: npm run build --if-present

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,9 @@ testem.log
4242
Thumbs.db
4343

4444
.config/
45+
46+
# Playwright
47+
/test-results/
48+
/playwright-report/
49+
/blob-report/
50+
/playwright/.cache/

dist/1064.51f76a90b9f6bf10.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/1155.526a96d6c4d9e3fe.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

dist/1253.a8dc4836a9b9d99d.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/1269.3d94950afc54efb1.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

dist/1326.fcc2c4ff0c25032f.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

dist/1361.478caeb5e427cd4a.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)