Skip to content

Commit

Permalink
fix(FEC-13123): replace travis with github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
giladna committed May 23, 2023
2 parents 4aab7a8 + c74ff30 commit eb40ac3
Show file tree
Hide file tree
Showing 9 changed files with 93 additions and 209 deletions.
25 changes: 0 additions & 25 deletions .github/workflows/common_build.yml

This file was deleted.

13 changes: 0 additions & 13 deletions .github/workflows/common_test.yml

This file was deleted.

34 changes: 34 additions & 0 deletions .github/workflows/run_canary_full_flow.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
## Canary CI/CD
name: Canary Full Flow
run-name: Canary Full Flow

on:
push:
branches:
- master

jobs:
test:
uses: kaltura/playkit-js-common/.github/workflows/cypress.yml@master
secrets: inherit

canary-full-flow:
if: ${{ github.actor != 'PlaykitJs-Bot' }}
uses: kaltura/ovp-pipelines-pub/.github/workflows/player_cicd.yaml@master
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: "playerV3OvpVersions"
node-version: "18.x"
tests-yarn-run-to-execute: 'build'


29 changes: 29 additions & 0 deletions .github/workflows/run_prod.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
## Prod CI
name: Prod
run-name: Prod

on:
workflow_dispatch:

jobs:
test:
uses: kaltura/playkit-js-common/.github/workflows/cypress.yml@master
secrets: inherit

prod:
uses: kaltura/ovp-pipelines-pub/.github/workflows/player_cicd.yaml@master
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: "playerV3OvpVersions"
node-version: "18.x"
tests-yarn-run-to-execute: 'build'
25 changes: 25 additions & 0 deletions .github/workflows/run_tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
## CI - Player And Plugin Tests
name: Player And Plugin Tests
run-name: Player And Plugin Tests

on:
pull_request:
branches:
- "*"

jobs:
tests:
uses: kaltura/playkit-js-common/.github/workflows/cypress.yml@master
secrets: inherit

notification:
if: always()
uses: kaltura/ovp-pipelines-pub/.github/workflows/notification.yaml@master
needs: 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.

5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# PlayKit JS Navigation - plugin for the [PlayKit JS Player]

[![Build Status](https://github.com/kaltura/playkit-js-navigation/actions/workflows/run_canary_full_flow.yaml/badge.svg)](https://github.com/kaltura/playkit-js-navigation/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/navigation/latest.svg)](https://www.npmjs.com/package/@playkit-js/navigation)
[![](https://img.shields.io/npm/v/@playkit-js/navigation/canary.svg)](https://www.npmjs.com/package/@playkit-js/navigation/v/canary)

PlayKit JS Navigation is written in [ECMAScript6], statically analysed using [Typescript] and transpiled in ECMAScript5 using [Babel].

[typescript]: https://www.typescriptlang.org/
Expand Down
37 changes: 0 additions & 37 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 eb40ac3

Please sign in to comment.