Skip to content

Commit

Permalink
chore(FEC-13123): replace travis with github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
giladna authored May 9, 2023
1 parent 8eb0755 commit 8716f82
Show file tree
Hide file tree
Showing 8 changed files with 99 additions and 191 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/run_canary_full_flow.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
## Canary CI/CD
name: Canary Full Flow
run-name: Canary Full Flow

on:
push:
branches:
- master

jobs:
canary-full-flow:
if: ${{ github.actor != 'PlaykitJs-Bot' }}
uses: kaltura/ovp-pipelines-pub/.github/workflows/player_cicd.yaml@v1.0.0
secrets:
PLAYER_CENTRAL_ACCOUNT_ID: ${{ secrets.PLAYER_CENTRAL_ACCOUNT_ID }}
PLAYER_SERVICES_ACCOUNT_ID: ${{ secrets.PLAYER_SERVICES_ACCOUNT_ID }}
PLAYER_S3_BUCKET_DEPLOYMENT: ${{ secrets.PLAYER_S3_BUCKET_DEPLOYMENT }}
PLAYER_S3_BUCKET_APPS: ${{ secrets.PLAYER_S3_BUCKET_APPS }}
PLAYER_NPM_TOKEN: ${{ secrets.PLAYER_NPM_TOKEN }}
PLAYER_LAMBDA_NAME: ${{ secrets.PLAYER_LAMBDA_NAME }}
PLAYER_MSTEAMS_WEBHOOK: ${{ secrets.PLAYER_MSTEAMS_WEBHOOK }}
PLAYER_GITHUB_BOT_TOKEN: ${{ secrets.PLAYER_GITHUB_BOT_TOKEN }}
with:
type: "plugin"
stage: "canary"
schema-type: "playerV3Versions"
tests-yarn-run-to-execute: 'eslint flow test'
24 changes: 24 additions & 0 deletions .github/workflows/run_prod.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
## Prod CI
name: Prod
run-name: Prod

on:
workflow_dispatch:

jobs:
prod:
uses: kaltura/ovp-pipelines-pub/.github/workflows/player_cicd.yaml@v1.0.0
secrets:
PLAYER_CENTRAL_ACCOUNT_ID: ${{ secrets.PLAYER_CENTRAL_ACCOUNT_ID }}
PLAYER_SERVICES_ACCOUNT_ID: ${{ secrets.PLAYER_SERVICES_ACCOUNT_ID }}
PLAYER_S3_BUCKET_DEPLOYMENT: ${{ secrets.PLAYER_S3_BUCKET_DEPLOYMENT }}
PLAYER_S3_BUCKET_APPS: ${{ secrets.PLAYER_S3_BUCKET_APPS }}
PLAYER_NPM_TOKEN: ${{ secrets.PLAYER_NPM_TOKEN }}
PLAYER_LAMBDA_NAME: ${{ secrets.PLAYER_LAMBDA_NAME }}
PLAYER_MSTEAMS_WEBHOOK: ${{ secrets.PLAYER_MSTEAMS_WEBHOOK }}
PLAYER_GITHUB_BOT_TOKEN: ${{ secrets.PLAYER_GITHUB_BOT_TOKEN }}
with:
type: "plugin"
env: "prod"
schema-type: "playerV3Versions"
tests-yarn-run-to-execute: 'eslint flow test'
24 changes: 24 additions & 0 deletions .github/workflows/run_tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
## CI - Player And Plugin Tests
name: Player And Plugin Tests
run-name: Player And Plugin Tests

on:
pull_request:
branches:
- "*"

jobs:
running-tests:
uses: kaltura/ovp-pipelines-pub/.github/workflows/player_tests.yaml@v1.0.0
with:
yarn-run-to-execute: 'eslint flow test'
notification:
if: always()
uses: kaltura/ovp-pipelines-pub/.github/workflows/notification.yaml@v1.0.0
needs: running-tests
secrets:
PLAYER_MSTEAMS_WEBHOOK: ${{ secrets.PLAYER_MSTEAMS_WEBHOOK }}
with:
failure-status: ${{ contains(needs.*.result, 'failure') }}
cancelled-status: ${{ contains(needs.*.result, 'cancelled') }}
is-test: 'true'
94 changes: 0 additions & 94 deletions .travis.yml

This file was deleted.

20 changes: 18 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,18 @@
# playkit-js-timeline
Playkit Timeline Plugin

# PlayKit JS Timeline - Kaltura Timeline Plugin for the [Kaltura Player JS]

* playkit-js-timeline

[![Build Status](https://github.com/kaltura/playkit-js-timeline/actions/workflows/run_canary_full_flow.yaml/badge.svg)](https://github.com/kaltura/playkit-js-timeline/actions/workflows/run_canary_full_flow.yaml)
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)
[![](https://img.shields.io/npm/v/@playkit-js/playkit-js-timeline/latest.svg)](https://www.npmjs.com/package/@playkit-js/playkit-js-timeline)
[![](https://img.shields.io/npm/v/@playkit-js/playkit-js-timeline/canary.svg)](https://www.npmjs.com/package/@playkit-js/playkit-js-timeline/v/canary)


## Timeline Manager

The Timeline Manager exposes simple API's to manage custom components on the player seekbar element.

By the Timeline Manager the app can add cue points to indicate specific points on the seekbar (e.g. ads).
As well as to custom the thumbnail preview shown on seekbar hovering.

23 changes: 6 additions & 17 deletions karma.conf.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
const isWindows = /^win/.test(process.platform);
const isMacOS = /^darwin/.test(process.platform);
// Create custom launcher in case running with Travis
const customLaunchers = {
Chrome_travis_ci: {
base: 'Chrome',
const launchers = {
Chrome_browser: {
base: 'ChromeHeadless',
flags: ['--no-sandbox', '--autoplay-policy=no-user-gesture-required']
}
};

module.exports = config => {
const karmaConf = {
logLevel: config.LOG_INFO,
browsers: ['Chrome', 'Firefox'],
browsers: [],
concurrency: 1,
singleRun: true,
colors: true,
Expand Down Expand Up @@ -39,16 +37,7 @@ module.exports = config => {
}
};

if (process.env.TRAVIS) {
karmaConf.customLaunchers = customLaunchers;
karmaConf.browsers = ['Chrome_travis_ci'];
} else {
if (isWindows) {
karmaConf.browsers.push('IE');
} else if (isMacOS) {
karmaConf.browsers.push('Safari');
}
}

karmaConf.customLaunchers = launchers;
karmaConf.browsers = ['Chrome_browser'];
config.set(karmaConf);
};
38 changes: 0 additions & 38 deletions scripts/after_deploy.sh

This file was deleted.

40 changes: 0 additions & 40 deletions scripts/travis.sh

This file was deleted.

0 comments on commit 8716f82

Please sign in to comment.