Skip to content

Commit

Permalink
NEXT-0000 - Add acceptance workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
pweyck committed Mar 18, 2024
1 parent de31375 commit 98377f9
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 2 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/02-acceptance.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Playwright Tests
on:
push:
branches: [ main, master ]
pull_request:
jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ghcr.io/${{ github.repository }}:latest
file: .gitlab/docker/dev/Dockerfile

acceptance_tests:
name: 'Playwright Tests'
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.42.1-jammy
# services:
# - name: shopware
# image: shopware
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- name: Install dependencies
working-directory: tests/acceptance
run: npm ci
- name: Run your tests
working-directory: tests/acceptance
run: npx playwright test
env:
HOME: /root
4 changes: 2 additions & 2 deletions .gitlab/docker/dev/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ RUN echo ${COMPOSER_CACHE_DIR} && ls -las ${COMPOSER_CACHE_DIR} \

FROM base-image

COPY --chown=www-data:www-data .gitlab/docker/entrypoint.sh /entrypoint
COPY --chown=82:82 .gitlab/docker/entrypoint.sh /entrypoint

COPY --from=build --link --chown=www-data:www-data /app /var/www/html
COPY --from=build --link --chown=82:82 /app /var/www/html

ENTRYPOINT [ "/entrypoint" ]

0 comments on commit 98377f9

Please sign in to comment.