Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run compatibility tests once per day and on PR changes #307

Merged
merged 37 commits into from
Jul 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
59f9d8c
Run compatibility tests once per day and on PR changes
NikkelM Jun 29, 2024
de81af0
Merge branch 'main' into compatibility-tests
NikkelM Jun 30, 2024
b1bcd49
Updated test description
NikkelM Jun 30, 2024
4cb6b68
Fixed typo
NikkelM Jun 30, 2024
1000e02
Merge branch 'main' into compatibility-tests
NikkelM Jun 30, 2024
72d5f6c
Merge branch 'main' into compatibility-tests
NikkelM Jul 1, 2024
1572419
Added puppeteer test for the yt-navigate-finish event
NikkelM Jul 2, 2024
8eb09e2
Updated cache task
NikkelM Jul 2, 2024
91395be
Updated path
NikkelM Jul 2, 2024
3ae8843
Updated tests, added test for channel page navigation
NikkelM Jul 2, 2024
575000c
Added test for adding shuffle button to channel header, install exten…
NikkelM Jul 2, 2024
37c0a9a
add display adapter
NikkelM Jul 2, 2024
eda9030
Split headfull and headless tests
NikkelM Jul 2, 2024
384a3d9
Updated browser initialization
NikkelM Jul 2, 2024
213c6c4
Updated puppeteer version
NikkelM Jul 2, 2024
c714a35
Exclude compatibility tests correctly
NikkelM Jul 2, 2024
a664417
Fixed getting the buttonDivOwner for new YouTube layout
NikkelM Jul 2, 2024
d075ab2
Bumped puppeteer, removed headull tests from CI
NikkelM Jul 2, 2024
2a35dff
Use new headfull action
NikkelM Jul 2, 2024
90d0839
Fix for headull CI action
NikkelM Jul 2, 2024
dbfaf9b
Updated uses clause
NikkelM Jul 3, 2024
f3d5129
Fixed filename
NikkelM Jul 3, 2024
15bf5c0
Updated timeout
NikkelM Jul 3, 2024
6bd5dcf
Remove other tasks for debugging
NikkelM Jul 3, 2024
487ab79
Install dependencies
NikkelM Jul 3, 2024
376503a
Added args
NikkelM Jul 3, 2024
1e7612c
Updated browser initialization
NikkelM Jul 3, 2024
4224390
Updated timeout
NikkelM Jul 3, 2024
9daaf28
Build extension before running tests
NikkelM Jul 3, 2024
85db7d9
Build outside of container
NikkelM Jul 3, 2024
2d4e4f0
Cleanup
NikkelM Jul 3, 2024
fcd4ca6
Removed install command
NikkelM Jul 3, 2024
db43f4e
Fix version
NikkelM Jul 3, 2024
062d674
Cleaner separations between tests, test cleanup afterEach, allow retries
NikkelM Jul 3, 2024
90fbf33
Added new test:all command
NikkelM Jul 3, 2024
b6b7189
Removed empty test
NikkelM Jul 3, 2024
a91d0b0
Updated changelog
NikkelM Jul 3, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions .github/workflows/compatibilityTest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Run Compatibility Tests

on:
schedule:
- cron: "0 0 * * *"
push:
branches:
- main
pull_request:
branches:
- main

jobs:
CompatibilityTest:
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
uses: actions/checkout@v3

- name: Set up node
uses: actions/setup-node@v3
env:
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: "true"
with:
node-version: 18

- name: Cache node modules
id: cache-npm
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-

- name: Install dependencies
run: npm install

- name: Build extension
run: npm run build:chromium

- name: Run compatibility tests
uses: nikkelm/puppeteer-headful@1.0.0
env:
CI: "true"
with:
args: npm run test:compatibility
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@
- Fixed a bug where the shuffle button would sometimes not be added to the page if it was opened directly from a new tab.
- Fixed a bug where the playlist created by the extension would sometimes not be renamed correctly.
- Fixed an animation bug when ignoring shorts and shuffling a channel with many videos from a shorts page.
- Fixed the shuffle button not being added to the channel page if the browser is using a new YouTube UI.
<!--Releasenotes end-->

## v3.1.7

- The extensions's news page can now be updated with breaking changes or other important information without the need to update the extension itself.
- The extension's news page can now be updated with breaking changes or other important information without the need to update the extension itself.
- Fixed some dynamic content on the News page.
- Added a hint in the popup if no channel has yet been visited.
- Removed some unneeded scripts from the extension's pages.
Expand Down
Loading
Loading