Skip to content

Commit

Permalink
add workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Logan Graham committed Sep 12, 2024
1 parent 93b95ea commit c992579
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/playwright-integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: playwright (integration test)

on:
push:
branches:
- main
paths:
- 'visual-js/visual-playwright/**'
- .github/workflows/js-build.yml
- .github/workflows/playwright-integration.yml
pull_request:
paths:
- 'visual-js/visual-playwright/**'
- .github/workflows/js-build.yml
- .github/workflows/playwright-integration.yml

defaults:
run:
working-directory: visual-js/visual-playwright

jobs:
integration-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push to local registry
uses: docker/build-push-action@v5
with:
context: '{{defaultContext}}:visual-js'
tags: saucelabs/visual-playwright
file: visual-playwright/Dockerfile
load: true
- name: Run the integration tests
run: |
npm ci
npm run test
working-directory: tests
env:
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
CONTAINER_IMAGE_NAME: saucelabs/visual-playwright

0 comments on commit c992579

Please sign in to comment.