CI/CD pipelines
On this page, you will find sample code and ways for integrating Scandium tests into come CI/CI pipeline.
Azure Devops
trigger:
- main
pool:
vmImage: 'windows-latest'
variables:
apiToken: '<API TOKEN>'
projectId: '<PROJECT ID>'
suiteId: '<SUITE ID>'
steps:
- task: UseDotNet@2
displayName: 'Use .NET Core sdk'
inputs:
version: '3.x'
- task: HttpRest@1
displayName: 'Make API call - Run E2E test suite'
inputs:
connectionType: 'connectedServiceNameARM'
connectedServiceNameSelector: 'ConnectedServiceName'
method: 'POST'
authentication: 'Basic'
customHeaders: |
Accept: application/json
Content-Type: application/json
x-api-token: $(apiToken)
endpoint: '<YOUR_SERVICE_CONNECTION_NAME>' # Replace with the name of your service connection
urlSuffix: '/suites/execute'
body: |
{
"project_id": "$(projectId)",
"suite_id": "$(suiteId)",
"strategy": "await"
}
Github Actions
Last updated