Skip to content

Commit

Permalink
chore: release v4.24.0 (#352)
Browse files Browse the repository at this point in the history
  • Loading branch information
dbudzins authored Aug 1, 2023
2 parents aed3d74 + 2270049 commit 2357cb8
Show file tree
Hide file tree
Showing 164 changed files with 1,665 additions and 1,199 deletions.
2 changes: 1 addition & 1 deletion .depcheckrc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ignores: [
'stylelint-config-recommended-scss',
'stylelint-declaration-strict-value',
'stylelint-scss',
'@vitest/coverage-c8',
'@vitest/coverage-v8',
# This is used by commitlint in .commitlintrc.js
'@commitlint/config-conventional',
# These are vite aliases / tsconfig paths that point to specific local directories
Expand Down
72 changes: 0 additions & 72 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

20 changes: 0 additions & 20 deletions .github/workflows/firebase-preview.yml

This file was deleted.

22 changes: 0 additions & 22 deletions .github/workflows/lhci.yml

This file was deleted.

50 changes: 50 additions & 0 deletions .github/workflows/release-create-release-candidate-branch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Release - Create Release Candidate Branch

# Triggered manually
on:
workflow_dispatch:

permissions:
contents: write
jobs:
create-release-branch:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
token: ${{ secrets.ACTION_TOKEN }}
ref: release
# It would be easier to create the branch from develop,
# but unfortunately the script that creates the PR's only considers commits added during the action run
- name: Merge latest from develop
run: |
git config --global user.name 'Release Script'
git config --global user.email 'ott-release-script@jwplayer.com'
git fetch origin develop
git merge origin/develop
yarn && yarn i18next
git add public/locales/*
git commit -m 'chore: parse latest translation tags'
env:
GITHUB_TOKEN: ${{ secrets.ACTION_TOKEN }}

- name: Generate changelog
id: changelog
uses: TriPSs/conventional-changelog-action@v3
with:
github-token: ${{ secrets.ACTION_TOKEN }}
release-count: 0
skip-tag: true
git-push: false
skip-ci: false

- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.ACTION_TOKEN }}
title: ${{ steps.changelog.outputs.tag }} Release Candidate
base: release
branch: release-candidate
body: ${{ steps.changelog.outputs.clean_changelog }}
labels: release-candidate
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
name: 'Firebase Live'
name: Release - Deploy Prod Demo Site

on:
push:
branches: ['develop']
branches: ['release']
workflow_dispatch:

jobs:
deploy_live_website:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Build
env:
APP_PLAYER_LICENSE_KEY: ${{ secrets.PLAYER_LICENSE_KEY }}
APP_GOOGLE_SITE_VERIFICATION_ID: ${{ vars.GOOGLE_SITE_VERIFICATION_ID }}
run: yarn && MODE=demo yarn build
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT }}"
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT }}'
channelId: live
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
name: Release
name: Release - Tag and Build Artifacts

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "develop" branch
push:
branches: ['develop']
branches: ['release']

jobs:
create-new-release-version:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
persist-credentials: false

Expand Down Expand Up @@ -45,7 +43,7 @@ jobs:
uses: ncipollo/release-action@v1
if: ${{ steps.changelog.outputs.tag }}
with:
artifacts: "build/ott-web-app-build-*.tar.gz, build/ott-web-app-build-*.zip"
artifacts: 'build/ott-web-app-build-*.tar.gz, build/ott-web-app-build-*.zip'
tag: ${{ steps.changelog.outputs.tag }}
bodyFile: ".github/RELEASE_BODY_TEMPLATE.md"
bodyFile: '.github/RELEASE_BODY_TEMPLATE.md'
token: ${{ secrets.github_token }}
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
name: CodeceptJS
name: Test - End to End

on: [pull_request]
on:
pull_request:
branches: [ 'develop', 'feat/*', 'feature/*', 'release', 'release-candidate' ]
push:
branches: [ 'develop', 'release', 'release-candidate' ]
schedule:
- cron: '30 3 * * 1-5'
workflow_dispatch:

jobs:
build:
Expand All @@ -13,9 +20,9 @@ jobs:
config: [desktop, mobile]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Linting
name: Test - Linting

on: [pull_request]

Expand All @@ -11,9 +11,9 @@ jobs:
node-version: [18.x]

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: yarn install, lint
Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/test-preview-and-lighthouse.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Test - Deploy Preview and Lighthouse Test

on:
pull_request:
branches: ['develop', 'feat/*', 'feature/*', 'release', 'release-candidate']

jobs:
build_and_preview:
name: Build and preview
runs-on: ubuntu-latest
outputs:
output1: ${{ steps.firebase_hosting_preview.outputs.details_url }}
steps:
- uses: actions/checkout@v3
- name: Build Preview Link
env:
APP_PLAYER_LICENSE_KEY: ${{ secrets.PLAYER_LICENSE_KEY }}
run: yarn && MODE=preview yarn build
- uses: FirebaseExtended/action-hosting-deploy@v0
id: firebase_hosting_preview
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT }}'
expires: 30d

lhci:
name: Lighthouse
runs-on: ubuntu-latest
needs: build_and_preview
steps:
- uses: actions/checkout@v3
- name: Install Lighthouse CI
run: sudo yarn global add @lhci/cli@0.12.x
- name: Run Lighthouse CI
run: lhci autorun --collect.url=${{ needs.build_and_preview.outputs.output1 }}?app-config=gnnuzabk --config=./lighthouserc.js
41 changes: 41 additions & 0 deletions .github/workflows/test-static-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Test - Static Analysis

on:
push:
branches: ['develop', 'feat/*', 'feature/*', 'release', 'release-candidate']
pull_request:
branches: ['develop', 'feat/*', 'feature/*', 'release', 'release-candidate']
schedule:
- cron: '30 4 * * 4'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: ['javascript']

steps:
- name: Checkout repository
uses: actions/checkout@v3

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test
name: Test - Unit and Snapshot

on: [pull_request]

Expand All @@ -11,9 +11,9 @@ jobs:
node-version: [18.x]

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: yarn install, build, and test
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ yarn-error.log
.firebase
firebase-debug.log
.stylelintcache
.lighthouseci

# os or editor
.idea
Expand All @@ -20,3 +21,6 @@ firebase-debug.log

# Exclude ini files because they have customer specific data
ini/*.ini

# Ignore working area for i18n checks
.temp-translations
Loading

0 comments on commit 2357cb8

Please sign in to comment.