Skip to content

Add Shared Action for System Tests with Playwright#10

Open
justwiebe wants to merge 1 commit intomainfrom
playwright-system-tests
Open

Add Shared Action for System Tests with Playwright#10
justwiebe wants to merge 1 commit intomainfrom
playwright-system-tests

Conversation

@justwiebe
Copy link
Collaborator

Our current system-tests action assumes selenium, which is not our default driver anymore

@justwiebe justwiebe self-assigned this Mar 6, 2026
Comment on lines +22 to +41
- name: Run Yarn Install
shell: bash
run: yarn install --immutable

- name: Cache Playwright Chromium browser
id: playwright-cache
uses: actions/cache@v5
with:
path: ~/.cache/ms-playwright
key: playwright-browsers-${{ runner.os }}-${{ hashFiles('yarn.lock') }}

- name: Setup Playwright
if: steps.playwright-cache.outputs.cache-hit != 'true'
shell: bash
run: yarn playwright install chromium

- name: Install Ruby and Gems
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Push back if you feel that it's overkill, but I wonder if it makes sense to extract this and use it from our other system test action, based on a needs-playwright (or something) input?

So we don't need to try and keep the 2 actions in sync.. Unless you believe they will change for different reasons?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, that's probably a good idea

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you wouldn't mind doing that, I think it would be really valuable. But if it's more work than you signed up for on a Friday. I get that too. I'm going to go ahead and approve now. You can merge when you're ready. With or without that extraction.

Copy link
Member

@OutlawAndy OutlawAndy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

Comment on lines +22 to +41
- name: Run Yarn Install
shell: bash
run: yarn install --immutable

- name: Cache Playwright Chromium browser
id: playwright-cache
uses: actions/cache@v5
with:
path: ~/.cache/ms-playwright
key: playwright-browsers-${{ runner.os }}-${{ hashFiles('yarn.lock') }}

- name: Setup Playwright
if: steps.playwright-cache.outputs.cache-hit != 'true'
shell: bash
run: yarn playwright install chromium

- name: Install Ruby and Gems
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you wouldn't mind doing that, I think it would be really valuable. But if it's more work than you signed up for on a Friday. I get that too. I'm going to go ahead and approve now. You can merge when you're ready. With or without that extraction.

@@ -1,5 +1,9 @@
# RoleModel/actions

## [v3.3.0] Mar 6, 2026
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make sure to add the reference-link definition to the list of them at the bottom of the file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants