From e8ff42afe4775517df968554683b9c93d2c3acc8 Mon Sep 17 00:00:00 2001 From: Roland Sadowski Date: Fri, 26 Jul 2024 13:05:33 +0100 Subject: [PATCH] ci: playwright-setup action --- .github/actions/playwright-setup/action.yml | 9 +++++++++ .github/workflows/deploy-to-dev.yml | 4 +--- .github/workflows/deploy.yml | 4 +--- 3 files changed, 11 insertions(+), 6 deletions(-) create mode 100644 .github/actions/playwright-setup/action.yml diff --git a/.github/actions/playwright-setup/action.yml b/.github/actions/playwright-setup/action.yml new file mode 100644 index 000000000..68d5896f3 --- /dev/null +++ b/.github/actions/playwright-setup/action.yml @@ -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 \ No newline at end of file diff --git a/.github/workflows/deploy-to-dev.yml b/.github/workflows/deploy-to-dev.yml index bef98fb73..81e17a640 100644 --- a/.github/workflows/deploy-to-dev.yml +++ b/.github/workflows/deploy-to-dev.yml @@ -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 @@ -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 }} diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 1bb5ae0a7..c380754aa 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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 @@ -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 }}