Skip to content

Commit 144ffda

Browse files
linglingye001danfiedler-msftjimmyca15dependabot[bot]zhiyuanliang-ms
authored
Merge main to preview (#376)
* Pin GitHub Actions to full-length commit SHAs * Bump @humanfs/node from 0.16.6 to 0.16.8 (#360) Bumps [@humanfs/node](https://github.com/humanwhocodes/humanfs/tree/HEAD/packages/node) from 0.16.6 to 0.16.8. - [Release notes](https://github.com/humanwhocodes/humanfs/releases) - [Changelog](https://github.com/humanwhocodes/humanfs/blob/main/packages/node/CHANGELOG.md) - [Commits](https://github.com/humanwhocodes/humanfs/commits/node-v0.16.8/packages/node) --- updated-dependencies: - dependency-name: "@humanfs/node" dependency-version: 0.16.8 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Merge pull request #357 from Azure/dependabot/npm_and_yarn/multi-67416dcff4 Bump serialize-javascript and mocha * Bump brace-expansion from 1.1.15 to 1.1.18 (#358) Bumps [brace-expansion](https://github.com/juliangruber/brace-expansion) from 1.1.15 to 1.1.18. - [Release notes](https://github.com/juliangruber/brace-expansion/releases) - [Commits](juliangruber/brace-expansion@v1.1.15...v1.1.18) --- updated-dependencies: - dependency-name: brace-expansion dependency-version: 1.1.18 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump vitest from 4.1.10 to 4.1.11 (#361) Bumps [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest) from 4.1.10 to 4.1.11. - [Release notes](https://github.com/vitest-dev/vitest/releases) - [Changelog](https://github.com/vitest-dev/vitest/blob/main/docs/releases.md) - [Commits](https://github.com/vitest-dev/vitest/commits/v4.1.11/packages/vitest) --- updated-dependencies: - dependency-name: vitest dependency-version: 4.1.11 dependency-type: direct:development ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump the github-actions group across 1 directory with 4 updates (#359) Bumps the github-actions group with 4 updates in the / directory: [actions/checkout](https://github.com/actions/checkout), [actions/setup-node](https://github.com/actions/setup-node), [github/codeql-action/init](https://github.com/github/codeql-action) and [github/codeql-action/analyze](https://github.com/github/codeql-action). Updates `actions/checkout` from 3.7.0 to 7.0.1 - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](actions/checkout@v3.7.0...3d3c42e) Updates `actions/setup-node` from 3.9.1 to 7.0.0 - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](actions/setup-node@3235b87...8207627) Updates `github/codeql-action/init` from 3.37.9 to 4.37.9 - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](github/codeql-action@6f5948d...cdf488f) Updates `github/codeql-action/analyze` from 3.37.9 to 4.37.9 - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](github/codeql-action@6f5948d...cdf488f) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: 7.0.1 dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: actions/setup-node dependency-version: 7.0.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: github/codeql-action/analyze dependency-version: 4.37.8 dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: github/codeql-action/init dependency-version: 4.37.8 dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump js-yaml from 4.3.1 to 4.3.2 (#362) Bumps [js-yaml](https://github.com/nodeca/js-yaml) from 4.3.1 to 4.3.2. - [Changelog](https://github.com/nodeca/js-yaml/blob/4.3.2/CHANGELOG.md) - [Commits](nodeca/js-yaml@4.3.1...4.3.2) --- updated-dependencies: - dependency-name: js-yaml dependency-version: 4.3.2 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Zhiyuan Liang <141655842+zhiyuanliang-ms@users.noreply.github.com> * Bump the github-actions group with 2 updates (#363) Bumps the github-actions group with 2 updates: [github/codeql-action/init](https://github.com/github/codeql-action) and [github/codeql-action/analyze](https://github.com/github/codeql-action). Updates `github/codeql-action/init` from 4.37.9 to 4.38.0 - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](github/codeql-action@cdf488f...b96794f) Updates `github/codeql-action/analyze` from 4.37.9 to 4.38.0 - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](github/codeql-action@cdf488f...b96794f) --- updated-dependencies: - dependency-name: github/codeql-action/init dependency-version: 4.38.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions - dependency-name: github/codeql-action/analyze dependency-version: 4.38.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump serialize-javascript from 7.1.1 to 7.1.2 (#364) Bumps [serialize-javascript](https://github.com/yahoo/serialize-javascript) from 7.1.1 to 7.1.2. - [Release notes](https://github.com/yahoo/serialize-javascript/releases) - [Commits](yahoo/serialize-javascript@v7.1.1...v7.1.2) --- updated-dependencies: - dependency-name: serialize-javascript dependency-version: 7.1.2 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump brace-expansion from 1.1.18 to 1.1.21 (#365) Bumps [brace-expansion](https://github.com/juliangruber/brace-expansion) from 1.1.18 to 1.1.21. - [Release notes](https://github.com/juliangruber/brace-expansion/releases) - [Commits](juliangruber/brace-expansion@v1.1.18...v1.1.21) --- updated-dependencies: - dependency-name: brace-expansion dependency-version: 1.1.21 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Add azure pipeline yaml file (#370) * Bump the github-actions group with 3 updates (#371) Bumps the github-actions group with 3 updates: [actions/setup-node](https://github.com/actions/setup-node), [github/codeql-action/init](https://github.com/github/codeql-action) and [github/codeql-action/analyze](https://github.com/github/codeql-action). Updates `actions/setup-node` from 7.0.0 to 7.1.0 - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](actions/setup-node@8207627...949feb2) Updates `github/codeql-action/init` from 4.38.0 to 4.38.3 - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](github/codeql-action@b96794f...24c5418) Updates `github/codeql-action/analyze` from 4.38.0 to 4.38.3 - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](github/codeql-action@b96794f...24c5418) --- updated-dependencies: - dependency-name: actions/setup-node dependency-version: 7.1.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions - dependency-name: github/codeql-action/init dependency-version: 4.38.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions - dependency-name: github/codeql-action/analyze dependency-version: 4.38.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Add integration tests (#368) * Add integration tests * fix lint * update * Migrate to azure pipeline (#372) * Migrate to azure pipeline * update * remove restriction for IT test * update * Bump source-map-js from 1.2.1 to 1.2.2 (#369) Bumps [source-map-js](https://github.com/7rulnik/source-map-js) from 1.2.1 to 1.2.2. - [Release notes](https://github.com/7rulnik/source-map-js/releases) - [Changelog](https://github.com/7rulnik/source-map-js/blob/main/CHANGELOG.md) - [Commits](7rulnik/source-map-js@v1.2.1...v1.2.2) --- updated-dependencies: - dependency-name: source-map-js dependency-version: 1.2.2 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump vite from 8.0.16 to 8.3.5 (#373) Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 8.0.16 to 8.3.5. - [Release notes](https://github.com/vitejs/vite/releases) - [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md) - [Commits](https://github.com/vitejs/vite/commits/v8.3.5/packages/vite) --- updated-dependencies: - dependency-name: vite dependency-version: 8.3.5 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump the github-actions group with 2 updates (#374) Bumps the github-actions group with 2 updates: [github/codeql-action/init](https://github.com/github/codeql-action) and [github/codeql-action/analyze](https://github.com/github/codeql-action). Updates `github/codeql-action/init` from 4.38.3 to 4.39.0 - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](github/codeql-action@24c5418...6f2ac81) Updates `github/codeql-action/analyze` from 4.38.3 to 4.39.0 - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](github/codeql-action@24c5418...6f2ac81) --- updated-dependencies: - dependency-name: github/codeql-action/init dependency-version: 4.39.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions - dependency-name: github/codeql-action/analyze dependency-version: 4.39.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump serialize-javascript from 7.1.2 to 7.1.4 (#375) Bumps [serialize-javascript](https://github.com/yahoo/serialize-javascript) from 7.1.2 to 7.1.4. - [Release notes](https://github.com/yahoo/serialize-javascript/releases) - [Commits](yahoo/serialize-javascript@v7.1.2...v7.1.4) --- updated-dependencies: - dependency-name: serialize-javascript dependency-version: 7.1.4 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Dan Fiedler <danfiedler@microsoft.com> Co-authored-by: Jimmy Campbell <jimmyca@microsoft.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Zhiyuan Liang <141655842+zhiyuanliang-ms@users.noreply.github.com>
1 parent a38aab3 commit 144ffda

12 files changed

Lines changed: 1353 additions & 728 deletions

‎.github/dependabot.yml‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
groups:
6+
github-actions:
7+
patterns: ["*"]
8+
schedule:
9+
interval: "weekly"
10+
cooldown:
11+
default-days: 7

‎.github/workflows/ci.yml‎

Lines changed: 0 additions & 29 deletions
This file was deleted.

‎.github/workflows/codeql.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,11 @@ jobs:
5555
# your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages
5656
steps:
5757
- name: Checkout repository
58-
uses: actions/checkout@v4
58+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
5959

6060
# Initializes the CodeQL tools for scanning.
6161
- name: Initialize CodeQL
62-
uses: github/codeql-action/init@v3
62+
uses: github/codeql-action/init@6f2ac81f5cd81fe351a197ba0b00d91d03cd2aee # v4.39.0
6363
with:
6464
languages: ${{ matrix.language }}
6565
build-mode: ${{ matrix.build-mode }}
@@ -87,6 +87,6 @@ jobs:
8787
exit 1
8888
8989
- name: Perform CodeQL Analysis
90-
uses: github/codeql-action/analyze@v3
90+
uses: github/codeql-action/analyze@6f2ac81f5cd81fe351a197ba0b00d91d03cd2aee # v4.39.0
9191
with:
9292
category: "/language:${{matrix.language}}"

‎azure-pipelines.yml‎

Lines changed: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
1+
trigger:
2+
branches:
3+
include:
4+
- main
5+
- preview
6+
- release/*
7+
8+
pr:
9+
branches:
10+
include:
11+
- main
12+
- preview
13+
- release/*
14+
15+
pool:
16+
# The current Playwright version does not support Chromium on Ubuntu 26.04.
17+
vmImage: ubuntu-24.04
18+
19+
stages:
20+
- stage: Build
21+
displayName: Build and offline tests
22+
jobs:
23+
- job: NodeTests
24+
displayName: Node.js tests
25+
strategy:
26+
matrix:
27+
Node20:
28+
nodeVersion: 20.x
29+
Node22:
30+
nodeVersion: 22.x
31+
Node24:
32+
nodeVersion: 24.x
33+
steps:
34+
- checkout: self
35+
- task: UseNode@1
36+
displayName: Use Node.js $(nodeVersion)
37+
inputs:
38+
version: $(nodeVersion)
39+
- script: npm ci
40+
displayName: Install dependencies
41+
- script: npm run lint
42+
displayName: Lint
43+
- script: npm run build
44+
displayName: Build
45+
- script: npm test -- --reporter xunit --reporter-option "output=$(Agent.TempDirectory)/test-results/unit-tests.xml"
46+
displayName: Run Node.js unit tests
47+
- script: npm run test-browser -- --reporter=default --reporter=junit --outputFile="$(Agent.TempDirectory)/test-results/browser-tests.xml"
48+
displayName: Run browser tests
49+
- task: PublishTestResults@2
50+
displayName: Publish unit and browser test results
51+
condition: succeededOrFailed()
52+
inputs:
53+
testResultsFormat: JUnit
54+
testResultsFiles: |
55+
unit-tests.xml
56+
browser-tests.xml
57+
searchFolder: $(Agent.TempDirectory)/test-results
58+
mergeTestResults: true
59+
failTaskOnFailedTests: true
60+
failTaskOnFailureToPublishResults: true
61+
failTaskOnMissingResultsFile: true
62+
testRunTitle: Node.js $(nodeVersion) unit and browser tests
63+
64+
- stage: Integration
65+
displayName: Live integration tests
66+
dependsOn: Build
67+
jobs:
68+
- job: LiveTests
69+
displayName: Node.js live integration tests
70+
timeoutInMinutes: '15'
71+
steps:
72+
- checkout: self
73+
- task: UseNode@1
74+
displayName: Use Node.js 24
75+
inputs:
76+
version: 24.x
77+
- script: npm ci
78+
displayName: Install dependencies
79+
- task: AzureCLI@2
80+
displayName: Run integration tests with the service principal
81+
inputs:
82+
azureSubscription: 'JS Provider GitHub PR Integration Test'
83+
addSpnToEnvironment: true
84+
visibleAzLogin: false
85+
scriptType: pscore
86+
scriptLocation: inlineScript
87+
workingDirectory: $(Build.SourcesDirectory)
88+
inlineScript: |
89+
foreach ($name in @("servicePrincipalId", "tenantId", "idToken")) {
90+
if ([string]::IsNullOrWhiteSpace([Environment]::GetEnvironmentVariable($name))) {
91+
throw "Missing $name. Configure the service connection with workload identity federation."
92+
}
93+
}
94+
if ($env:AZURE_CLIENT_SECRET -or $env:AZURE_CLIENT_CERTIFICATE_PATH) {
95+
throw "Do not configure client secrets or certificates for this federated test job."
96+
}
97+
98+
$env:AZURE_CLIENT_ID = $env:servicePrincipalId
99+
$env:AZURE_TENANT_ID = $env:tenantId
100+
$tokenPath = Join-Path $env:AGENT_TEMPDIRECTORY "appconfig-federated-$([Guid]::NewGuid().ToString('N')).txt"
101+
102+
try {
103+
Set-Content -LiteralPath $tokenPath -Value $env:idToken -NoNewline -Encoding utf8
104+
$env:AZURE_FEDERATED_TOKEN_FILE = $tokenPath
105+
$env:AZURE_SUBSCRIPTION_ID = az account show --query id --output tsv --only-show-errors
106+
if ($LASTEXITCODE -ne 0 -or [string]::IsNullOrWhiteSpace($env:AZURE_SUBSCRIPTION_ID)) {
107+
throw "Could not read the subscription selected by the service connection."
108+
}
109+
110+
$resultsPath = Join-Path $env:AGENT_TEMPDIRECTORY "test-results/integration-tests.xml"
111+
npm run test:integration -- --reporter xunit --reporter-option "output=$resultsPath"
112+
if ($LASTEXITCODE -ne 0) {
113+
throw "Integration tests failed with exit code $LASTEXITCODE."
114+
}
115+
} finally {
116+
$env:AZURE_FEDERATED_TOKEN_FILE = $null
117+
if (Test-Path -LiteralPath $tokenPath) {
118+
Remove-Item -LiteralPath $tokenPath -Force
119+
}
120+
}
121+
- task: PublishTestResults@2
122+
displayName: Publish integration test results
123+
condition: succeededOrFailed()
124+
inputs:
125+
testResultsFormat: JUnit
126+
testResultsFiles: integration-tests.xml
127+
searchFolder: $(Agent.TempDirectory)/test-results
128+
failTaskOnFailedTests: true
129+
failTaskOnFailureToPublishResults: true
130+
failTaskOnMissingResultsFile: true
131+
testRunTitle: Node.js 24 live integration tests

0 commit comments

Comments
 (0)