Skip to content

Commit 5a9a229

Browse files
Copilotdavidfowl
andauthored
Replace apt-get with npm for Azure Functions Core Tools installation (#12537)
* Initial plan * Replace apt-get with npm for Azure Functions Core Tools installation - Change from apt-get to npm installation method to avoid package mirror sync issues - Updated .github/workflows/run-tests.yml - Updated .github/workflows/tests-runner.yml (2 locations) - Uses official npm installation: npm i -g azure-functions-core-tools@4 --unsafe-perm true Co-authored-by: davidfowl <95136+davidfowl@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: davidfowl <95136+davidfowl@users.noreply.github.com>
1 parent 0a51ce5 commit 5a9a229

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

.github/workflows/run-tests.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,7 @@ jobs:
180180
- name: Install Azure Functions Core Tools
181181
if: inputs.os == 'ubuntu-latest' && (inputs.testShortName == 'Playground' || inputs.testShortName == 'Azure')
182182
run: |
183-
sudo apt-get update
184-
sudo apt-get install -y azure-functions-core-tools-4
183+
npm i -g azure-functions-core-tools@4 --unsafe-perm true
185184
186185
- name: Compute test project path
187186
id: compute_project_path

.github/workflows/tests-runner.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,7 @@ jobs:
117117
- name: Install Azure Functions Core Tools
118118
if: runner.os == 'Linux'
119119
run: |
120-
sudo apt-get update
121-
sudo apt-get install -y azure-functions-core-tools-4
120+
npm i -g azure-functions-core-tools@4 --unsafe-perm true
122121
123122
- name: Test ${{ matrix.tests.label }}
124123
run: |
@@ -179,8 +178,7 @@ jobs:
179178
- name: Install Azure Functions Core Tools
180179
if: runner.os == 'Linux'
181180
run: |
182-
sudo apt-get update
183-
sudo apt-get install -y azure-functions-core-tools-4
181+
npm i -g azure-functions-core-tools@4 --unsafe-perm true
184182
185183
- name: Test ${{ matrix.tests.label }}
186184
env:

0 commit comments

Comments
 (0)