mirror of
https://github.com/documenso/documenso.git
synced 2025-11-22 20:51:33 +10:00
feat: add docker to gh action
This commit is contained in:
12
.github/workflows/actions/docker-compose/action.yml
vendored
Normal file
12
.github/workflows/actions/docker-compose/action.yml
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
# .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: curl -SL https://github.com/docker/compose/releases/download/v2.16.0/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose
|
||||||
|
- name: Make plugin executable
|
||||||
|
shell: bash
|
||||||
|
run: sudo chmod +x /usr/local/bin/docker-compose
|
||||||
3
.github/workflows/e2e-tests.yml
vendored
3
.github/workflows/e2e-tests.yml
vendored
@ -13,6 +13,7 @@ jobs:
|
|||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 18
|
node-version: 18
|
||||||
|
- uses: ./.github/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
|
||||||
@ -31,3 +32,5 @@ 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