-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add pipeline to run 1p PWB e2e tests (#6598)
- Add pipeline to run 1p PWB e2e tests.
- Loading branch information
1 parent
a944241
commit f0092e2
Showing
1 changed file
with
63 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
trigger: none # Disable push triggers | ||
|
||
pr: | ||
- dev | ||
|
||
pool: | ||
vmImage: ubuntu-latest | ||
|
||
steps: | ||
- task: NodeTool@0 | ||
displayName: 'Install Node.js' | ||
inputs: | ||
versionSpec: '18.x' | ||
|
||
- checkout: git://IDDP/msal-javascript-1p | ||
- script: | | ||
npm run submodule:init | ||
displayName: Initialize submodule | ||
|
||
- script: | | ||
cd ./microsoft-authentication-library-for-js | ||
git checkout $(System.PullRequest.SourceBranch) | ||
git pull | ||
displayName: 'Pull latest changes from 3P feature branch' | ||
|
||
- task: npmAuthenticate@0 | ||
displayName: 'Authenticate to npm package registry' | ||
inputs: | ||
workingFile: ./.npmrc | ||
|
||
- task: npmAuthenticate@0 | ||
displayName: 'Authenticate to npm package registry' | ||
inputs: | ||
workingFile: ./1ds.npmrc | ||
|
||
- script: | | ||
npm ci --workspace=samples/Broker_WAMTestApp | ||
displayName: 'Install dependencies' | ||
|
||
- task: Npm@1 | ||
inputs: | ||
workingDir: 'samples/Broker_WAMTestApp' | ||
command: 'custom' | ||
customCommand: 'run build:package' | ||
displayName: 'Build sample' | ||
|
||
- task: Npm@1 | ||
inputs: | ||
workingDir: 'samples/Broker_WAMTestApp' | ||
command: 'custom' | ||
customCommand: 'run generate:certs' | ||
displayName: 'Generate certificates' | ||
|
||
- task: Npm@1 | ||
inputs: | ||
workingDir: 'samples/Broker_WAMTestApp' | ||
command: 'custom' | ||
customCommand: 'run test' | ||
env: | ||
AZURE_CLIENT_SECRET: $(AZURE_CLIENT_SECRET) | ||
AZURE_TENANT_ID: $(AZURE_TENANT_ID) | ||
AZURE_CLIENT_ID: $(AZURE_CLIENT_ID) | ||
displayName: 'Run e2e tests' |