Skip to content

Commit

Permalink
Run compatibility tests once per day and on PR changes (#307)
Browse files Browse the repository at this point in the history
  • Loading branch information
NikkelM authored Jul 3, 2024
1 parent 2afbce7 commit c70d3a2
Show file tree
Hide file tree
Showing 9 changed files with 1,195 additions and 25 deletions.
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

0 comments on commit c70d3a2

Please sign in to comment.