Skip to content

Commit

Permalink
Use a github repo variable to dictate the ubuntu version runners run …
Browse files Browse the repository at this point in the history
…on (#5446)
  • Loading branch information
JamesBurnside authored Nov 28, 2024
1 parent 2dfbec5 commit 80a797d
Show file tree
Hide file tree
Showing 18 changed files with 55 additions and 55 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/alpha-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
name: Build and publish alpha package
environment:
name: npm-alpha
runs-on: ubuntu-latest
runs-on: ${{ vars.RUNS_ON }}
permissions:
contents: write
id-token: write
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/breaking-change-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
# get matrix for ci-jobs
get_matrix:
name: Load CI Matrix Details
runs-on: ubuntu-latest
runs-on: ${{ vars.RUNS_ON }}
permissions: read-all
outputs:
matrix: ${{ steps.get-matrix.outputs.matrix }}
Expand All @@ -39,7 +39,7 @@ jobs:
check_breaking_changes:
needs: get_matrix
name: 'Check Breaking Changes (${{ matrix.flavor }})'
runs-on: ubuntu-latest
runs-on: ${{ vars.RUNS_ON }}
permissions: read-all
strategy:
matrix: ${{ fromJSON(needs.get_matrix.outputs.matrix) }}
Expand Down
36 changes: 18 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
# get matrix for ci-jobs
get_matrix:
name: Load CI Matrix Details
runs-on: ubuntu-latest
runs-on: ${{ vars.RUNS_ON }}
outputs:
matrix: ${{ steps.get-matrix.outputs.matrix }}
steps:
Expand All @@ -43,7 +43,7 @@ jobs:
build_packages:
needs: get_matrix
name: 'Build Packages (${{ matrix.flavor }})'
runs-on: ubuntu-latest
runs-on: ${{ vars.RUNS_ON }}
strategy:
matrix: ${{ fromJSON(needs.get_matrix.outputs.matrix) }}
steps:
Expand Down Expand Up @@ -123,7 +123,7 @@ jobs:
jest-test-coverage:
needs: [get_matrix, build_packages]
name: 'Jest Test Coverage (${{ matrix.flavor }})'
runs-on: ubuntu-latest
runs-on: ${{ vars.RUNS_ON }}
permissions:
pull-requests: write
strategy:
Expand Down Expand Up @@ -220,7 +220,7 @@ jobs:
name: Check if in progress feature can be removed separately (${{ matrix.flavor }})
strategy:
matrix: ${{ fromJSON(needs.get_matrix.outputs.matrix) }}
runs-on: ubuntu-latest
runs-on: ${{ vars.RUNS_ON }}
steps:
# Checks-out your repository under $GITHUB_WORKSPACE so job can access it
- uses: actions/checkout@v4
Expand Down Expand Up @@ -269,7 +269,7 @@ jobs:
call_composite_automation_test:
needs: get_matrix
name: 'Call Composite automation test (${{ matrix.flavor }})'
runs-on: ubuntu-latest
runs-on: ${{ vars.RUNS_ON }}
permissions:
pull-requests: write
strategy:
Expand Down Expand Up @@ -336,7 +336,7 @@ jobs:
chat_composite_automation_test:
needs: get_matrix
name: 'Chat Composite automation test (${{ matrix.flavor }})'
runs-on: ubuntu-latest
runs-on: ${{ vars.RUNS_ON }}
permissions:
pull-requests: write
strategy:
Expand Down Expand Up @@ -403,7 +403,7 @@ jobs:
call_with_chat_composite_automation_test:
needs: get_matrix
name: 'Call With Chat Composite automation test (${{ matrix.flavor }})'
runs-on: ubuntu-latest
runs-on: ${{ vars.RUNS_ON }}
permissions:
pull-requests: write
strategy:
Expand Down Expand Up @@ -469,7 +469,7 @@ jobs:
components_automation_test:
needs: get_matrix
name: 'Components automation test (${{ matrix.flavor }})'
runs-on: ubuntu-latest
runs-on: ${{ vars.RUNS_ON }}
permissions:
pull-requests: write
strategy:
Expand Down Expand Up @@ -527,7 +527,7 @@ jobs:
name: Build Storybook v8 (${{ matrix.flavor }})
strategy:
matrix: ${{ fromJSON(needs.get_matrix.outputs.matrix) }}
runs-on: ubuntu-latest
runs-on: ${{ vars.RUNS_ON }}
steps:
- uses: actions/checkout@v4
- name: Use Node.js
Expand Down Expand Up @@ -556,7 +556,7 @@ jobs:
build_calling_sample:
needs: get_matrix
name: 'Build Calling Sample (${{ matrix.flavor }})'
runs-on: ubuntu-latest
runs-on: ${{ vars.RUNS_ON }}
strategy:
matrix: ${{ fromJSON(needs.get_matrix.outputs.matrix) }}
steps:
Expand Down Expand Up @@ -588,7 +588,7 @@ jobs:
build_chat_sample:
needs: get_matrix
name: 'Build Chat Sample (${{ matrix.flavor }})'
runs-on: ubuntu-latest
runs-on: ${{ vars.RUNS_ON }}
strategy:
matrix: ${{ fromJSON(needs.get_matrix.outputs.matrix) }}
steps:
Expand Down Expand Up @@ -620,7 +620,7 @@ jobs:
build_call_with_chat_sample:
needs: get_matrix
name: 'Build CallWithChat Sample (${{ matrix.flavor }})'
runs-on: ubuntu-latest
runs-on: ${{ vars.RUNS_ON }}
strategy:
matrix: ${{ fromJSON(needs.get_matrix.outputs.matrix) }}
steps:
Expand Down Expand Up @@ -652,7 +652,7 @@ jobs:
build_calling_stateful_samples:
needs: get_matrix
name: 'Build Calling Stateful Samples (${{ matrix.flavor }})'
runs-on: ubuntu-latest
runs-on: ${{ vars.RUNS_ON }}
strategy:
matrix: ${{ fromJSON(needs.get_matrix.outputs.matrix) }}
steps:
Expand All @@ -678,7 +678,7 @@ jobs:
build_static_html_composites_sample:
needs: get_matrix
name: 'Build And Test Static HTML Composites Sample (${{ matrix.flavor }})'
runs-on: ubuntu-latest
runs-on: ${{ vars.RUNS_ON }}
permissions:
pull-requests: write
strategy:
Expand Down Expand Up @@ -728,7 +728,7 @@ jobs:
build_component_examples:
needs: get_matrix
name: 'Build And Test Component+Binding Examples (${{ matrix.flavor }})'
runs-on: ubuntu-latest
runs-on: ${{ vars.RUNS_ON }}
permissions:
pull-requests: write
strategy:
Expand Down Expand Up @@ -776,7 +776,7 @@ jobs:
})
compare_base_bundle_stats:
runs-on: ubuntu-latest
runs-on: ${{ vars.RUNS_ON }}
permissions:
pull-requests: write
if: ${{ github.event_name == 'pull_request' && !startsWith(github.event.pull_request.base.ref, 'release/') }}
Expand Down Expand Up @@ -858,7 +858,7 @@ jobs:
fi
echo "Bundle size diff for $app is below the threshold of $significantBundleSizeThreshold. All is good!"
update_base_bundle_report:
runs-on: ubuntu-latest
runs-on: ${{ vars.RUNS_ON }}
name: Upload bundle size report to gist - ${{ matrix.app }}
needs: [build_calling_sample, build_chat_sample, build_call_with_chat_sample]
if: github.ref == 'refs/heads/main'
Expand Down Expand Up @@ -886,7 +886,7 @@ jobs:
file_path: report.json

check_failure:
runs-on: ubuntu-latest
runs-on: ${{ vars.RUNS_ON }}
permissions:
issues: write
needs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ concurrency:
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
runs-on: ${{ vars.RUNS_ON }}
permissions:
actions: read
contents: read
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/create-api-view-feature-level.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ concurrency:

jobs:
build:
runs-on: ubuntu-latest
runs-on: ${{ vars.RUNS_ON }}
permissions: read-all
steps:
# Checks-out your repository under $GITHUB_WORKSPACE so job can access it
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/create-prerelease-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
# create pre-release branch for beta releases
create_pre-release:
name: Bump versions and make changelog for release
runs-on: ubuntu-latest
runs-on: ${{ vars.RUNS_ON }}
permissions: read-all
steps:
# Check-out repo
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/create-release-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
create_release:
if: ${{ startsWith(github.event.inputs.branch, 'prerelease') }}
name: Create release branch
runs-on: ubuntu-latest
runs-on: ${{ vars.RUNS_ON }}
permissions: read-all
steps:
# Check-out repo
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy-azure-webapps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ permissions: read-all
jobs:
build-and-deploy-samples:
name: Build and Deploy samples
runs-on: ubuntu-latest
runs-on: ${{ vars.RUNS_ON }}
permissions:
# Needed for Azure login
id-token: write
Expand Down Expand Up @@ -95,7 +95,7 @@ jobs:
package: ./samples/CallWithChat/dist

check_failure:
runs-on: ubuntu-latest
runs-on: ${{ vars.RUNS_ON }}
permissions:
issues: write
needs: [build-and-deploy-samples]
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/deploy-feature-azure-webapps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ permissions: read-all
jobs:
calling:
name: Build and Deploy Calling App
runs-on: ubuntu-latest
runs-on: ${{ vars.RUNS_ON }}
permissions:
# Needed for Azure login
id-token: write
Expand Down Expand Up @@ -56,7 +56,7 @@ jobs:

chat:
name: Build and Deploy Chat App
runs-on: ubuntu-latest
runs-on: ${{ vars.RUNS_ON }}
permissions:
# Needed for Azure login
id-token: write
Expand Down Expand Up @@ -98,7 +98,7 @@ jobs:

callwithchat:
name: Build and Deploy CallWithChat App
runs-on: ubuntu-latest
runs-on: ${{ vars.RUNS_ON }}
permissions:
# Needed for Azure login
id-token: write
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/deploy-release-azure-webapps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ permissions: read-all
jobs:
calling:
name: Build and Deploy Calling App
runs-on: ubuntu-latest
runs-on: ${{ vars.RUNS_ON }}
permissions:
# Needed for Azure login
id-token: write
Expand Down Expand Up @@ -66,7 +66,7 @@ jobs:

chat:
name: Build and Deploy Chat App
runs-on: ubuntu-latest
runs-on: ${{ vars.RUNS_ON }}
permissions:
# Needed for Azure login
id-token: write
Expand Down Expand Up @@ -114,7 +114,7 @@ jobs:

callwithchat:
name: Build and Deploy CallWithChat App
runs-on: ubuntu-latest
runs-on: ${{ vars.RUNS_ON }}
permissions:
# Needed for Azure login
id-token: write
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-storybook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ concurrency:
jobs:
build-and-deploy-storybook:
name: Build and Deploy Storybook
runs-on: ubuntu-latest
runs-on: ${{ vars.RUNS_ON }}
permissions: # permissions needed for the deploy-storybook script
pages: write
id-token: write
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/nightly-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
name: Check for new changes
outputs:
hasChanged: ${{ steps.checkChange.outputs.hasChanged }}
runs-on: ubuntu-latest
runs-on: ${{ vars.RUNS_ON }}
permissions: read-all
steps:
# Check-out repo
Expand Down Expand Up @@ -61,7 +61,7 @@ jobs:
environment:
name: npm-alpha
if: needs.checkForChanges.outputs.hasChanged == 'true'
runs-on: ubuntu-latest
runs-on: ${{ vars.RUNS_ON }}
permissions:
contents: write
id-token: write
Expand Down Expand Up @@ -187,7 +187,7 @@ jobs:
exit 1
check_failure:
runs-on: ubuntu-latest
runs-on: ${{ vars.RUNS_ON }}
permissions:
issues: write
needs: release
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/npm-release-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ concurrency:

jobs:
job-inputs:
runs-on: ubuntu-latest
runs-on: ${{ vars.RUNS_ON }}
permissions: read-all
steps:
- name: Set branch name
Expand All @@ -45,7 +45,7 @@ jobs:
name: npm
url: https://www.npmjs.com/package/@azure/communication-react
name: Publish release
runs-on: ubuntu-latest
runs-on: ${{ vars.RUNS_ON }}
permissions:
packages: write
contents: write
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-chromatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ concurrency:
jobs:
chromatic_deployment:
name: Publish Chromatic Storybook 8
runs-on: ubuntu-latest
runs-on: ${{ vars.RUNS_ON }}
permissions:
packages: write
pull-requests: write
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/stress-test-ui-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ concurrency:
jobs:
stress_test_ui_tests:
name: Stress test UI tests
runs-on: ubuntu-latest
runs-on: ${{ vars.RUNS_ON }}
permissions: read-all
steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-api-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ permissions: read-all
jobs:
update_composite_snapshot:
name: Update all API files
runs-on: ubuntu-latest
runs-on: ${{ vars.RUNS_ON }}
strategy:
matrix:
include:
Expand Down
Loading

0 comments on commit 80a797d

Please sign in to comment.