Skip to content

Commit

Permalink
Add pipeline to run 1p PWB e2e tests (#6598)
Browse files Browse the repository at this point in the history
- Add pipeline to run 1p PWB e2e tests.
  • Loading branch information
konstantin-msft authored Oct 24, 2023
1 parent a944241 commit f0092e2
Showing 1 changed file with 63 additions and 0 deletions.
63 changes: 63 additions & 0 deletions .pipelines/1p-e2e-pwb-wam-sample.yml
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'

0 comments on commit f0092e2

Please sign in to comment.