Skip to content

The Open Source DocuSign Alternative.

feat: github repo management improvement (#728)

Lucas Smith5e9bc56329ac
diff --cc .github/workflows/e2e-tests.yml
index 506abbc5f,2f8df180b..7b05458d9
--- a/.github/workflows/e2e-tests.yml
+++ b/.github/workflows/e2e-tests.yml
@@@ -1,43 -1,44 +1,44 @@@
name: Playwright Tests
on:
push:
- branches: [ "main" ]
+ branches: ['main']
pull_request:
- branches: [ "main" ]
+ branches: ['main']
jobs:
e2e_tests:
+ name: "E2E Tests"
timeout-minutes: 60
runs-on: ubuntu-latest
- services:
- postgres:
- image: postgres
- env:
- POSTGRES_USER: postgres
- POSTGRES_PASSWORD: postgres
- options: >-
- --health-cmd pg_isready
- --health-interval 10s
- --health-timeout 5s
- --health-retries 5
- ports:
- - 5432:5432
steps:
- - uses: actions/checkout@v3
- - uses: actions/setup-node@v3
+ - uses: actions/checkout@v4
+ - uses: actions/setup-node@v4
with:
node-version: 18
+ cache: npm
- name: Install dependencies
run: npm ci
+
- name: Copy env
run: cp .env.example .env
+
+ - name: Start Services
+ run: npm run dx:up
+
- name: Install Playwright Browsers
run: npx playwright install --with-deps
+
- name: Generate Prisma Client
run: npm run prisma:generate -w @documenso/prisma
+
- name: Create the database
run: npm run prisma:migrate-dev
+
+ - name: Seed the database
+ run: npm run prisma:seed
+
- name: Run Playwright tests
run: npm run ci
+
- uses: actions/upload-artifact@v3
if: always()
with: