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 44e76d6
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
run:
description: Script to execute
required: true
type: string

runs:
using: composite
steps:
- name: Setup playwright
id: setup
shell: bash
env:
PLAYWRIGHT_VERSION: v1.47.2-noble@sha256:f640d04686ef8fcca228955dc73f36b86ccd2228eda488fb2b32f3f037639f09
run: |
TMP_DIR="$(mktemp -d)"
SCRIPT_PATH="${TMP_DIR}/run.sh"
echo "${{ inputs.run }}" > "${SCRIPT_PATH}"
chmod +x "${SCRIPT_PATH}"
echo "script=${SCRIPT_PATH}" >> ${GITHUB_OUTPUT}
CONTAINER="docker://mcr.microsoft.com/playwright:${{ inputs.version || PLAYWRIGHT_VERSION }}"
echo ${CONTAINER}
echo "container=${CONTAINER}" >> ${GITHUB_OUTPUT}
- name: Run playwright
uses: ${{ steps.setup.outputs.container }}
with:
args: ${{ steps.setup.outputs.script }}
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 44e76d6

Please sign in to comment.