mirror of
https://github.com/documenso/documenso.git
synced 2025-11-26 22:44:41 +10:00
ci: update GitHub Actions
This commit is contained in:
@@ -1,15 +0,0 @@
|
|||||||
# .github/actions/docker-compose/action.yml
|
|
||||||
name: 'Docker-Compose Setup'
|
|
||||||
description: 'Sets up docker-compose'
|
|
||||||
runs:
|
|
||||||
using: 'composite'
|
|
||||||
steps:
|
|
||||||
- name: Download Docker-Compose plugin
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
mkdir -p ${{ runner.temp }}/bin
|
|
||||||
curl -SL https://github.com/docker/compose/releases/download/v2.16.0/docker-compose-linux-x86_64 -o ${{ runner.temp }}/bin/docker-compose
|
|
||||||
echo "${{ runner.temp }}/bin" >> $GITHUB_PATH
|
|
||||||
- name: Make plugin executable
|
|
||||||
shell: bash
|
|
||||||
run: chmod +x ${{ runner.temp }}/bin/docker-compose
|
|
||||||
20
.github/workflows/e2e-tests.yml
vendored
20
.github/workflows/e2e-tests.yml
vendored
@@ -8,12 +8,26 @@ jobs:
|
|||||||
e2e_tests:
|
e2e_tests:
|
||||||
timeout-minutes: 60
|
timeout-minutes: 60
|
||||||
runs-on: ubuntu-latest
|
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
|
||||||
|
env:
|
||||||
|
DATABASE_URL: postgresql://postgres:postgres@localhost:5432/documenso
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 18
|
node-version: 18
|
||||||
- uses: ./.github/workflows/actions/docker-compose
|
|
||||||
- name: Generate package-lock.json
|
- name: Generate package-lock.json
|
||||||
run: npm install
|
run: npm install
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
@@ -24,6 +38,8 @@ jobs:
|
|||||||
run: npm run build
|
run: npm run build
|
||||||
- name: Install Playwright Browsers
|
- name: Install Playwright Browsers
|
||||||
run: npx playwright install --with-deps
|
run: npx playwright install --with-deps
|
||||||
|
- name: Create the database
|
||||||
|
run: npx prisma migrate deploy
|
||||||
- name: Run Playwright tests
|
- name: Run Playwright tests
|
||||||
run: npm run ci
|
run: npm run ci
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v3
|
||||||
@@ -32,5 +48,3 @@ jobs:
|
|||||||
name: playwright-report
|
name: playwright-report
|
||||||
path: playwright-report/
|
path: playwright-report/
|
||||||
retention-days: 30
|
retention-days: 30
|
||||||
env:
|
|
||||||
DATABASE_URL: postgres://myuser:documenso@localhost:5432/postgres
|
|
||||||
|
|||||||
Reference in New Issue
Block a user