Skip to content
This repository was archived by the owner on Nov 29, 2023. It is now read-only.

Commit 59a6226

Browse files
Merge branch 'main' into vapi-1390-real-time-transcription
2 parents 302fd47 + e6b9b1f commit 59a6226

39 files changed

+2534
-1705
lines changed

.bandwidth/catalog-info.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
apiVersion: backstage.io/v1alpha1
2+
kind: Location
3+
metadata:
4+
schemaVersion: v1.0.0
5+
name: api-docs-location
6+
description: Links to additional entities in the api-docs repository.
7+
annotations:
8+
github.com/project-slug: Bandwidth/api-docs
9+
spec:
10+
targets:
11+
- ./component.yaml
12+
# - add more components using relative filepaths here
13+
# - you may also rename/move the original component.yaml file

.bandwidth/component.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
apiVersion: backstage.io/v1alpha1
2+
kind: Component
3+
metadata:
4+
schemaVersion: v1.0.0
5+
name: api-docs
6+
description: Bandwidth's Developer Docsite Repository
7+
annotations:
8+
github.com/project-slug: Bandwidth/api-docs
9+
organization: BW
10+
costCenter: UNKNOWN
11+
platformType: AWS
12+
spec:
13+
type: Service
14+
owner: github/band-swi
15+
lifecycle: production
16+
dependsOn:
17+
- resource:platform/AWS
18+
- resource:aws-regions/us-east-1

.github/CODEOWNERS

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
# Global rule:
2-
* @Bandwidth/software-infrastructure
2+
* @Bandwidth/band-swi @Bandwidth/band-swi-github-repo-admin
3+
4+
# SWI as reviewers on catalog files
5+
.bandwidth @Bandwidth/band-swi

.github/workflows/blog-posts.yml

Lines changed: 27 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,35 @@
1-
name: Update Blog Posts
1+
# Ingest repository_dispatch events for syncing blog posts
2+
name: Blog Posts Listener
23

34
on:
4-
schedule:
5-
- cron: '0 13 * * 1'
6-
workflow_dispatch:
5+
repository_dispatch:
6+
types: [Blog]
77

88
jobs:
9-
get_blog_posts:
10-
name: Get Most Recent Posts from Bandwidth Blog
9+
sync-blog-posts:
1110
runs-on: ubuntu-latest
12-
# outputs:
13-
# release_needed: ${{ steps.release_needed.outputs.release_needed }}
1411
steps:
15-
- name: Get Blog Posts from Wordpress API
16-
id: get_posts
12+
- name: Checkout
13+
uses: actions/checkout@v3
14+
15+
- name: Configure Git and Create Branch
16+
run: |
17+
git config user.email "[email protected]"
18+
git config user.name "DX-Bandwidth"
19+
git checkout -b sync-blog-posts
20+
21+
- name: Update Blog Posts File
22+
run: |
23+
cat > ./site/blogposts.config.json <<< $POSTS_JSON
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.DX_GITHUB_TOKEN }}
26+
POSTS_JSON: ${{ toJson(github.event.client_payload.posts) }}
27+
28+
- name: Commit Changes and Create Pull Request
1729
run: |
18-
BLOG_POSTS=$(curl -Ls -H "Authorization: token $WORDPRESS_TOKEN" https://www.bandwidth.com/wp-json/wp/v2/posts?per_page=20 | jq '[del(.[] | select(.categories[] | contains(1680))) | .[] | {imageId: .featured_media, categories: .categories, postLink: .link, postTitle: .title.rendered}] | .[:10]')
19-
20-
echo $BLOG_POSTS
30+
git add site/blogposts.config.json
31+
git commit -m 'update blog posts'
32+
git push origin sync-blog-posts
33+
gh pr create -B main -H sync-blog-posts --title 'Update Blog Posts' --body 'Auto-generated by Blog Posts Listener Workflow'
2134
env:
22-
WORDPRESS_TOKEN: ${{ secrets.WORDPRESS_TOKEN }}
35+
GITHUB_TOKEN: ${{ secrets.DX_GITHUB_TOKEN }}

.github/workflows/cypress-prod-nightly.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,20 +26,14 @@ jobs:
2626
uses: actions/checkout@v3
2727

2828
- name: Cypress run
29-
uses: cypress-io/github-action@v4.2.0
29+
uses: cypress-io/github-action@v5.8.0
3030
timeout-minutes: 40
3131
with:
32-
record: true
3332
browser: ${{ matrix.browser }}
3433
working-directory: ./site
3534
config-file: prod-cypress.config.js
36-
tag: production
3735
env:
38-
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
39-
CYPRESS_PROJECT_ID: ${{ secrets.PROJECT_ID }}
4036
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41-
COMMIT_INFO_MESSAGE: ${{github.event.pull_request.title}}
42-
COMMIT_INFO_SHA: ${{github.event.pull_request.head.sha}}
4337
notify_for_failures:
4438
name: Notify for Failures
4539
needs: [cypress_nightly]

.github/workflows/pr-closed-delete-staging-site.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -68,20 +68,14 @@ jobs:
6868
EOL
6969
7070
- name: Cypress Staged Cloudfront Deployment Test
71-
uses: cypress-io/github-action@v4.2.0
71+
uses: cypress-io/github-action@v5.8.0
7272
timeout-minutes: 40
7373
with:
74-
record: true
7574
browser: ${{ matrix.browser }}
7675
working-directory: ./site
7776
config-file: staged-cypress.config.js
78-
tag: production
7977
env:
80-
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
81-
CYPRESS_PROJECT_ID: ${{ secrets.PROJECT_ID }}
8278
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
83-
COMMIT_INFO_MESSAGE: ${{github.event.pull_request.title}}
84-
COMMIT_INFO_SHA: ${{github.event.pull_request.head.sha}}
8579

8680
delete_bucket_folder:
8781
name: Delete Bucket Folder

.github/workflows/pr-publish-docsite.yml

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -31,39 +31,29 @@ jobs:
3131
- name: Setup Node
3232
uses: actions/setup-node@v3
3333
with:
34-
node-version: 16
34+
node-version: 18
3535

3636
- name: Checkout
3737
uses: actions/checkout@v3
3838

3939
- name: Cypress run
40-
uses: cypress-io/github-action@v4.2.0
41-
timeout-minutes: 40
40+
uses: cypress-io/github-action@v5.8.0
41+
timeout-minutes: 20
4242
with:
43-
record: true
4443
browser: ${{ matrix.browser }}
4544
start: yarn start
4645
wait-on: http://localhost:3000
4746
wait-on-timeout: 180
4847
working-directory: ./site
4948
config-file: cypress.config.js
5049
env:
51-
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
52-
CYPRESS_PROJECT_ID: ${{ secrets.PROJECT_ID }}
5350
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
54-
# overwrite commit message sent to Dashboard
55-
COMMIT_INFO_MESSAGE: ${{github.event.pull_request.title}}
56-
# re-enable PR comment bot
57-
COMMIT_INFO_SHA: ${{github.event.pull_request.head.sha}}
5851
GOOGLE_ANALYTICS_TRACKING_ID: "12345"
5952
GTAG_TRACKING_ID: "12345"
6053

6154
publish:
6255
name: Publish Temp Docsite
6356
runs-on: ubuntu-latest
64-
outputs:
65-
domain: ${{steps.distribution.outputs.distribution-domain}}
66-
id: ${{steps.distribution.outputs.distribution-id}}
6757
steps:
6858
- name: Checkout
6959
uses: actions/checkout@v3

.github/workflows/publish-docsite.yml

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -24,28 +24,23 @@ jobs:
2424
- name: Setup Node
2525
uses: actions/setup-node@v3
2626
with:
27-
node-version: 16
27+
node-version: 18
2828

2929
- name: Checkout
3030
uses: actions/checkout@v3
3131

3232
- name: Cypress run
33-
uses: cypress-io/github-action@v4.2.0
34-
timeout-minutes: 40
33+
uses: cypress-io/github-action@v5.8.0
34+
timeout-minutes: 20
3535
with:
36-
record: true
3736
browser: ${{ matrix.browser }}
3837
start: yarn start
3938
wait-on: http://localhost:3000
4039
wait-on-timeout: 180
4140
working-directory: ./site
4241
config-file: cypress.config.js
4342
env:
44-
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
45-
CYPRESS_PROJECT_ID: ${{ secrets.PROJECT_ID }}
4643
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47-
COMMIT_INFO_MESSAGE: ${{github.event.pull_request.title}}
48-
COMMIT_INFO_SHA: ${{github.event.pull_request.head.sha}}
4944
GOOGLE_ANALYTICS_TRACKING_ID: "12345"
5045
GTAG_TRACKING_ID: "12345"
5146

@@ -127,26 +122,20 @@ jobs:
127122
- name: Setup Node
128123
uses: actions/setup-node@v2
129124
with:
130-
node-version: 16
125+
node-version: 18
131126

132127
- name: Checkout
133128
uses: actions/checkout@v3
134129

135130
- name: Cypress Post Deployment Test
136-
uses: cypress-io/github-action@v4.2.0
137-
timeout-minutes: 40
131+
uses: cypress-io/github-action@v5.8.0
132+
timeout-minutes: 20
138133
with:
139-
record: true
140134
browser: ${{ matrix.browser }}
141135
working-directory: ./site
142136
config-file: prod-cypress.config.js
143-
tag: production
144137
env:
145-
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
146-
CYPRESS_PROJECT_ID: ${{ secrets.PROJECT_ID }}
147138
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
148-
COMMIT_INFO_MESSAGE: ${{github.event.pull_request.title}}
149-
COMMIT_INFO_SHA: ${{github.event.pull_request.head.sha}}
150139
GOOGLE_ANALYTICS_TRACKING_ID: "12345"
151140
GTAG_TRACKING_ID: "12345"
152141

0 commit comments

Comments
 (0)