Skip to content

Commit

Permalink
updated workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanak-michal committed May 16, 2024
1 parent 2e15c14 commit a5da7d6
Showing 1 changed file with 40 additions and 29 deletions.
69 changes: 40 additions & 29 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report
name: playwright-report-neo4j-read
path: playwright-report/

- name: Build
Expand All @@ -70,7 +70,7 @@ jobs:
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report
name: playwright-report-build
path: playwright-report/

neo4j-write:
Expand Down Expand Up @@ -110,7 +110,7 @@ jobs:
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report
name: playwright-report-neo4j-write
path: playwright-report/
retention-days: 7

Expand Down Expand Up @@ -151,31 +151,42 @@ jobs:
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report
name: playwright-report-neo4j-multidb
path: playwright-report/
retention-days: 7

memgraph:
timeout-minutes: 60
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.44.0-jammy

services:
memgraph:
image: memgraph/memgraph:latest
ports:
- 7687:7687
options: >-
--health-cmd "echo 'RETURN 0;' | mgconsole || exit 1"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: latest
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps chromium
- name: Run Playwright tests (memgraph)
run: npm run playwright:memgraph
env:
DB_HOSTNAME: 'bolt://memgraph:7687'
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report-memgraph
path: playwright-report/
retention-days: 7
# memgraph:
# timeout-minutes: 60
# runs-on: ubuntu-latest
# container:
# image: mcr.microsoft.com/playwright:v1.43.0-jammy
#
# services:
# memgraph:
# image: memgraph/memgraph:latest
# ports:
# - 7687:7687
# options: >-
# --health-cmd "echo 'RETURN 0;' | mgconsole || exit 1"
#
# steps:
# - name: Checkout
# uses: actions/checkout@v4
# - name: Setup node
# uses: actions/setup-node@v4
# with:
# node-version: latest
# - name: Install dependencies
# run: npm ci
# - name: Run Playwright tests (memgraph)
# run: npm run playwright:memgraph

0 comments on commit a5da7d6

Please sign in to comment.