Skip to content

Conversation

ocavue
Copy link
Contributor

@ocavue ocavue commented Jun 25, 2025

I need to test my another PR #73 on my Linux machine, but I found that the testing workflow is broken on Linux. This PR fixes the CI test workflow on Ubuntu. There is a screenshot of GitHub action after this PR:

image

This PR includes the following changes

  • Update Playwright to the latest v1.53.1. This should be helpful for system dependency installation.

  • Remove Node.js v14 from the test workflow. Playwright doesn't support Node.js v14 since v1.34 1.

  • Add Node.js v24 to the test workflow.

  • Add ubuntu-latest to the test workflow.

  • Remove dom.moduleScripts.enabled from the code because it seems that it doesn't work anymore with recent Firefox versions. 2

    There used to be dom.moduleScripts.enabled in Firefox, but it's long gone.

  • To similar a legacy browser, I set the renderModernChunks: false option to @vitejs/plugin-legacy.

  • Remove Firefix since we don't use its dom.moduleScripts.enabled anymore. Now all tests are based on Chromium.

Footnotes

  1. https://playwright.dev/docs/release-notes#version-134

  2. https://stackoverflow.com/questions/77450311/how-to-test-non-esm-script-nomodule-on-a-modern-setup

on:
push:
tags: v*
tags: [v*]
Copy link
Contributor Author

@ocavue ocavue Jun 25, 2025

Choose a reason for hiding this comment

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

Note for reviewer:

Here is a small tweak that's not related to this PR. tags should be an array. See example: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#example-including-branches-and-tags

@ocavue ocavue marked this pull request as ready for review June 25, 2025 14:30
@ocavue ocavue mentioned this pull request Jun 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant