-
Notifications
You must be signed in to change notification settings - Fork 392
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Improved testing options * Review feedback * Fix typo * Slight tweaks * Allow multiple browsers or metrics * Add e2e test * Test action * Revert test * Revert properly * Chrome tests * Inly unit tests for now * Retry Chrome tests * Comment * Disable gpu * Try some mroe options * One more try * Onre more, one more try * Give up, leave to just unit tests * Rename test to make clear * Try MacOS * Set screensize * More tests * Set better standard size * Plit out tests * Revert back to one file * Fix flakey test * More flakiness * didn'\t need visibility change * Machines * Firefox to MacOS * Make command line flags case insensitive * Revert test change * Add rAF * Fixup CLS tests * Fix one genuine 0 * Add await * Clear beacons * Add another await * More gte to gt * strictEquals * Clean up * See if equals now works --------- Co-authored-by: Philip Walton <philip@philipwalton.com>
- Loading branch information
1 parent
79d6f28
commit 5420b5f
Showing
9 changed files
with
155 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
name: Run tests | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
jobs: | ||
unit-tests: | ||
name: Run unit tests | ||
# Doesn't require anything special so let's use ubuntu as more available | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v4 | ||
- name: NPM install | ||
run: npm install | ||
- name: Build | ||
run: npm run build | ||
- name: Run unit tests | ||
run: npm run test:unit | ||
chrome-tests: | ||
name: Run Chrome e2e tests | ||
# Runs best on macos for CI as linux requires extra chrome flags | ||
runs-on: macos-latest | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v4 | ||
- name: NPM install | ||
run: npm install | ||
- name: Build | ||
run: npm run build | ||
- name: Run server | ||
run: npm run test:server & | ||
- name: Run e2e tests for chrome | ||
run: npm run test:e2e -- --browsers=chrome | ||
firefox-tests: | ||
name: Run Firefox e2e tests | ||
# Runs best on macos for CI as linux requires extra setup | ||
runs-on: macos-latest | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v4 | ||
- name: NPM install | ||
run: npm install | ||
- name: Build | ||
run: npm run build | ||
- name: Run server | ||
run: npm run test:server & | ||
- name: Run e2e tests for firefox | ||
run: npm run test:e2e -- --browsers=firefox | ||
safari-tests: | ||
name: Run Safari e2e tests | ||
# Requires macos | ||
runs-on: macos-latest | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v4 | ||
- name: NPM install | ||
run: npm install | ||
- name: Build | ||
run: npm run build | ||
- name: Run server | ||
run: npm run test:server & | ||
- name: Run e2e tests for safari | ||
run: npm run test:e2e -- --browsers=safari |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.