Skip to content

Commit 5c6ae66

Browse files
committed
testing with docker
1 parent 0d27a2a commit 5c6ae66

File tree

5 files changed

+35
-5
lines changed

5 files changed

+35
-5
lines changed

.dockerignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,6 @@ azure-deploy/
1717
infra/
1818
playwright-report/
1919
test-results/
20-
test-results-docker/
20+
test-results-docker/
21+
test-results-docker-ent/
22+
test-results-docker-org/

.github/workflows/playwright.yml

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
branches: [ main, master ]
77
jobs:
88
test:
9-
timeout-minutes: 60
9+
timeout-minutes: 10
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v4
@@ -25,3 +25,29 @@ jobs:
2525
name: playwright-report
2626
path: playwright-report/
2727
retention-days: 30
28+
29+
test-api-org:
30+
timeout-minutes: 15
31+
runs-on: ubuntu-latest
32+
steps:
33+
- name: Run Playwright tests
34+
run: docker compose --profile tests run playwright
35+
- uses: actions/upload-artifact@v4
36+
if: ${{ !cancelled() }}
37+
with:
38+
name: playwright-report-docker-org
39+
path: test-results-docker-org/
40+
retention-days: 30
41+
42+
test-api-ent:
43+
timeout-minutes: 15
44+
runs-on: ubuntu-latest
45+
steps:
46+
- name: Run Playwright tests
47+
run: docker compose -f docker-compose.yml -f docker-compose.ent.override.yml --profile tests run playwright
48+
- uses: actions/upload-artifact@v4
49+
if: ${{ !cancelled() }}
50+
with:
51+
name: playwright-report-docker-ent
52+
path: test-results-docker-ent/
53+
retention-days: 30

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,6 @@ test.http
2929
/test-results-docker/
3030
/playwright-report/
3131
/blob-report/
32-
/playwright/.cache/
32+
/playwright/.cache/
33+
test-results-docker-ent/
34+
test-results-docker-org/

docker-compose.ent.override.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ services:
1111
- VUE_APP_GITHUB_ENT=octodemo
1212

1313
playwright:
14-
command: npx playwright test --output test-results-docker --grep @ent
14+
command: npx playwright test --output test-results-docker-ent --grep @ent

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ services:
3333
volumes:
3434
- .:/workspace
3535
working_dir: /workspace
36-
command: npx playwright test --output test-results-docker --grep @org
36+
command: npx playwright test --output test-results-docker-org --grep @org
3737
ipc: host
3838
profiles: [tests]
3939
depends_on:

0 commit comments

Comments
 (0)