Skip to content

Commit

Permalink
chore: testing playwright action
Browse files Browse the repository at this point in the history
  • Loading branch information
peterhirn committed Oct 1, 2024
1 parent 0483d69 commit 88c4444
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 3 deletions.
34 changes: 34 additions & 0 deletions .github/actions/playwright/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: playwright

inputs:
version:
description: Playwright version
required: false
default: v1.47.2-noble@sha256:f640d04686ef8fcca228955dc73f36b86ccd2228eda488fb2b32f3f037639f09
run:
description: Script to execute
required: true
type: string

runs:
using: composite
steps:
- name: Setup Playwright script
shell: bash
run: |
mkdir -p .playwright
echo "#!/usr/bin/env bash" > .playwright/run.sh
echo "set -euo pipefail" >> .playwright/run.sh
echo "${{ inputs.run }}" >> .playwright/run.sh
chmod +x .playwright/run.sh
- name: Run Playwright
shell: bash
run: |
set -eux
docker run --rm \
-e CI=true \
--workdir /github/workspace \
-v "${{ github.workspace }}":/github/workspace \
mcr.microsoft.com/playwright:${{ inputs.version }} \
.playwright/run.sh
11 changes: 9 additions & 2 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,15 @@ jobs:
if: ${{ !startsWith(github.event.head_commit.message, 'release:') }}
runs-on: ubuntu-24.04
steps:
- name: Check
run: echo check
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4

- name: Playwright
uses: ./.github/actions/playwright
with:
run: |
echo hello
echo more lines
- name: Alpine
id: alpine
Expand Down
1 change: 0 additions & 1 deletion release-please-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
{ "type": "test", "section": "Tests" },
{ "type": "build", "section": "Build System" },
{ "type": "ci", "section": "Continuous Integration" },
{ "type": "infra", "section": "Infrastructure" },
{ "type": "release", "section": "Releases", "hidden": true }
],
"pull-request-title-pattern": "release: ${version}",
Expand Down

0 comments on commit 88c4444

Please sign in to comment.