Skip to content

Commit

Permalink
ci: playwright-setup action
Browse files Browse the repository at this point in the history
  • Loading branch information
rosado committed Jul 26, 2024
1 parent 08dabda commit e8ff42a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
9 changes: 9 additions & 0 deletions .github/actions/playwright-setup/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: "Playwright Setup"
description: "Installs Playwright and dependencies"
runs:
using: 'composite'
steps:
- id: install playwright
shell: bash
run: |
npx playwright install --with-deps
4 changes: 1 addition & 3 deletions .github/workflows/deploy-to-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ jobs:
DOCKER_REPO: ${{ secrets.DEPLOY_DOCKER_REPOSITORY }}
steps:
- uses: actions/checkout@v4

- name: Install AWS CLI
uses: ./.github/actions/awscli-setup
- name: Setup Node
Expand All @@ -28,8 +27,7 @@ jobs:
- id: install-node-dependencies
run: |
npm ci
npx playwright install --with-deps
- uses: ./.github/actions/playwright-setup
- uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.DEPLOY_AWS_ACCESS_KEY_ID }}
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ jobs:
DOCKER_REPO: ${{ secrets.DEPLOY_DOCKER_REPOSITORY }}
steps:
- uses: actions/checkout@v4

- name: Install AWS CLI
uses: ./.github/actions/awscli-setup
- name: Setup Node
Expand All @@ -34,8 +33,7 @@ jobs:
- id: install-node-dependencies
run: |
npm ci
npx playwright install --with-deps
- uses: ./.github/actions/playwright-setup
- uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.DEPLOY_AWS_ACCESS_KEY_ID }}
Expand Down

0 comments on commit e8ff42a

Please sign in to comment.