Skip to content

Commit e70a144

Browse files
Copilothuntj88
andcommitted
Update GitHub Action workflows to fix timeout issues
Co-authored-by: huntj88 <10103298+huntj88@users.noreply.github.com>
1 parent 3d73e0d commit e70a144

3 files changed

Lines changed: 18 additions & 24 deletions

File tree

.github/workflows/codeql.yaml

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,14 @@
1-
# For most projects, this workflow file will not need changing; you simply need
2-
# to commit it to your repository.
3-
#
4-
# You may wish to alter this file to override the set of languages analyzed,
5-
# or to provide custom queries or build logic.
6-
#
7-
# ******** NOTE ********
8-
# We have attempted to detect the languages in your repository. Please check
9-
# the `language` matrix defined below to confirm you have the correct set of
10-
# supported CodeQL languages.
11-
#
121
name: 'CodeQL'
132

143
on:
154
push:
16-
branches: ['main', main*]
5+
branches: ['main', 'mainv2']
176
pull_request:
187
# The branches below must be a subset of the branches above
19-
branches: ['main']
8+
branches: ['main', 'mainv2']
209
schedule:
2110
- cron: '0 2 * * 6'
11+
workflow_dispatch:
2212

2313
jobs:
2414
analyze:
@@ -40,7 +30,7 @@ jobs:
4030

4131
steps:
4232
- name: Checkout repository
43-
uses: actions/checkout@v3
33+
uses: actions/checkout@v4
4434

4535
# Initializes the CodeQL tools for scanning.
4636
- name: Initialize CodeQL

.github/workflows/live-share-build-samples.yaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ name: Build Live Share SDK samples
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches: [ main, mainv2 ]
66
pull_request:
7-
branches: [ main ]
7+
branches: [ main, mainv2 ]
8+
workflow_dispatch:
89

910
jobs:
1011
build:
@@ -13,14 +14,15 @@ jobs:
1314

1415
strategy:
1516
matrix:
16-
node-version: [18.x]
17+
node-version: [18.x, 20.x]
1718

1819
steps:
19-
- uses: actions/checkout@v3
20+
- uses: actions/checkout@v4
2021
- name: Use Node.js ${{ matrix.node-version }}
21-
uses: actions/setup-node@v3
22+
uses: actions/setup-node@v4
2223
with:
2324
node-version: ${{ matrix.node-version }}
25+
cache: 'npm'
2426
- run: npm install
2527
- run: npm install jest
2628
working-directory: samples/javascript/02.react-video

.github/workflows/live-share-test-packages.yaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ name: Test Live Share SDK packages
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches: [ main, mainv2 ]
66
pull_request:
7-
branches: [ main ]
7+
branches: [ main, mainv2 ]
8+
workflow_dispatch:
89

910
jobs:
1011
build:
@@ -13,14 +14,15 @@ jobs:
1314

1415
strategy:
1516
matrix:
16-
node-version: [18.x]
17+
node-version: [18.x, 20.x]
1718

1819
steps:
19-
- uses: actions/checkout@v3
20+
- uses: actions/checkout@v4
2021
- name: Use Node.js ${{ matrix.node-version }}
21-
uses: actions/setup-node@v3
22+
uses: actions/setup-node@v4
2223
with:
2324
node-version: ${{ matrix.node-version }}
25+
cache: 'npm'
2426
- run: npm install
2527
- run: npm run build:packages
2628

0 commit comments

Comments
 (0)