-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
164 changed files
with
1,665 additions
and
1,199 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
50 changes: 50 additions & 0 deletions
50
.github/workflows/release-create-release-candidate-branch.yml
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,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 |
11 changes: 6 additions & 5 deletions
11
.github/workflows/firebase-live.yml → ...ub/workflows/release-deploy-prod-demo.yml
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 |
---|---|---|
@@ -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 |
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,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 |
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,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 |
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
Oops, something went wrong.