Skip to content

Commit 3c5c417

Browse files
chore: clean up e2e action
1 parent 5733e6b commit 3c5c417

File tree

1 file changed

+2
-31
lines changed

1 file changed

+2
-31
lines changed

.github/workflows/e2e-tests.yml

Lines changed: 2 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -12,26 +12,12 @@ jobs:
1212
e2e:
1313
runs-on: ubuntu-latest
1414

15-
# services:
16-
# db:
17-
# image: postgres:13
18-
# env:
19-
# POSTGRES_DB: postgres
20-
# POSTGRES_USER: postgres
21-
# POSTGRES_PASSWORD: secret
22-
# ports:
23-
# - 5432:5432
24-
# healthcheck:
25-
# test: ["CMD-SHELL", "pg_isready -U postgres"]
26-
# interval: 5s
27-
# retries: 5
28-
# timeout: 2s
29-
3015
env:
3116
DATABASE_URL: "postgresql://postgres:secret@localhost:5432/postgres"
3217
NEXTAUTH_URL: http://localhost:3000/api/auth
3318
GITHUB_ID: ${{ secrets.E2E_GITHUB_ID }}
3419
GITHUB_SECRET: ${{ secrets.E2E_GITHUB_SECRET }}
20+
NEXTAUTH_SECRET: "please_keep_this_secret"
3521

3622
steps:
3723
- name: Checkout repository
@@ -75,19 +61,4 @@ jobs:
7561
with:
7662
name: playwright-report
7763
path: playwright-report/
78-
retention-days: 30
79-
80-
81-
- name: Save traces for inspection
82-
if: failure()
83-
run: |
84-
mkdir -p trace-artifacts
85-
[ -d playwright-report ] && cp -R playwright-report trace-artifacts/ || echo "No Playwright report to copy."
86-
[ -d traces ] && cp -R traces/* trace-artifacts/ || echo "No trace files to copy."
87-
88-
- name: Upload traces
89-
if: failure()
90-
uses: actions/upload-artifact@v3
91-
with:
92-
name: test-traces
93-
path: trace-artifacts
64+
retention-days: 30

0 commit comments

Comments
 (0)