-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release/v4.2.0' into stable
- Loading branch information
Showing
506 changed files
with
15,749 additions
and
16,518 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
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,26 @@ | ||
name: RxPlayer Demo Checks | ||
|
||
on: | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
paths: | ||
- demo/** | ||
|
||
jobs: | ||
scripts_lint: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [20.x] | ||
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: "npm" | ||
- run: npm ci | ||
- run: npm run check:demo |
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,91 @@ | ||
name: Publish autobuild package | ||
on: | ||
pull_request: | ||
types: [opened, synchronize, reopened, labeled] | ||
|
||
jobs: | ||
inform-autobuild: | ||
if: ${{github.repository != 'canalplus/rx-player' && github.event.action == 'opened'}} | ||
runs-on: [ubuntu-latest] | ||
permissions: | ||
pull-requests: write | ||
steps: | ||
- name: Comment PR | ||
uses: actions/github-script@v6 | ||
with: | ||
script: | | ||
github.rest.issues.createComment({ | ||
issue_number: context.issue.number, | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
body: `You can deploy a built version of the RxPlayer with the current branch by adding the label \`deploy\` to the pull request. | ||
This will create a release on your github fork with name \`autobuild.${{ github.sha }}\` ` | ||
}) | ||
publish-autobuild-package: | ||
# This action only runs on forks because it pushes a new release. | ||
# It is not wanted on the main repository as it would spam the releases. | ||
if: | ||
${{github.repository != 'canalplus/rx-player' && (github.event.action == 'opened' || | ||
github.event.action == 'synchronize' || github.event.action == 'reopened') && | ||
contains(github.event.pull_request.labels.*.name, 'deploy') || github.event.action | ||
== 'labeled' && github.event.label.name == 'deploy'}} | ||
|
||
runs-on: [ubuntu-latest] | ||
permissions: | ||
packages: write | ||
contents: write | ||
pull-requests: write | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: 20 | ||
scope: "@${{ github.repository_owner }}" | ||
registry-url: "https://npm.pkg.github.com" | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
|
||
- name: Build Library | ||
run: npm run build:noCheck | ||
|
||
- name: Create archive | ||
run: echo "npm-pack=$(npm pack)" >> $GITHUB_OUTPUT | ||
id: npm-pack | ||
|
||
- name: Upload archive to release | ||
uses: svenstaro/upload-release-action@v2 | ||
id: upload-action | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: ${{ steps.npm-pack.outputs.npm-pack }} | ||
asset_name: rx-player.tgz | ||
tag: "autobuild.${{ github.sha }}" | ||
release_name: "autobuild.${{ github.sha }}" | ||
overwrite: true | ||
body: | ||
"Autobuild from branch ${{github.ref_name}}, commit hash: ${{github.sha}}, | ||
date: ${{ github.event.repository.updated_at }}" | ||
|
||
- name: Comment PR | ||
uses: actions/github-script@v6 | ||
with: | ||
script: | | ||
github.rest.issues.createComment({ | ||
issue_number: context.issue.number, | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
body: `A built version of the branch has been deployed to the following URL: | ||
${{steps.upload-action.outputs.browser_download_url}} | ||
You can import it by changing your \`package.json\`: | ||
\`\`\`json | ||
"rx-player": "${{steps.upload-action.outputs.browser_download_url}}" | ||
\`\`\` | ||
Then run: | ||
\`npm install\`` | ||
}) |
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,26 @@ | ||
name: RxPlayer Script Checks | ||
|
||
on: | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
paths: | ||
- scripts/** | ||
|
||
jobs: | ||
scripts_lint: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [20.x] | ||
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: "npm" | ||
- run: npm ci | ||
- run: npm run lint:scripts |
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,26 @@ | ||
name: RxPlayer Tests Checks | ||
|
||
on: | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
paths: | ||
- tests/** | ||
|
||
jobs: | ||
tests_lint: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [20.x] | ||
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: "npm" | ||
- run: npm ci | ||
- run: npm run lint:tests |
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 |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
/localhost.key | ||
/node_modules | ||
/webpack-demo.config.mjs | ||
|
||
/tmp | ||
/demo | ||
|
||
/tests | ||
|
Oops, something went wrong.