1
0
Fork 0
mirror of https://github.com/ansible-collections/hetzner.hcloud.git synced 2026-02-04 08:01:49 +00:00

refactor: prefer true/false over yes/no (#226)

* style: format md and yml files using prettier

* refactor: prefer true/false over yes/no
This commit is contained in:
Jonas L 2023-06-21 10:49:54 +02:00 committed by GitHub
parent 97c84e93a4
commit 02516d9a7b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
47 changed files with 348 additions and 364 deletions

View file

@ -38,7 +38,7 @@ resources:
pool: Standard
stages:
### Sanity
### Sanity
- stage: Ansible_devel
displayName: Sanity devel
dependsOn: []
@ -47,8 +47,7 @@ stages:
parameters:
targets:
- name: Sanity
test: 'devel/sanity/1'
test: "devel/sanity/1"
- stage: Ansible_2_15
displayName: Sanity 2.15
@ -58,7 +57,7 @@ stages:
parameters:
targets:
- name: Sanity
test: '2.15/sanity/1'
test: "2.15/sanity/1"
- stage: Ansible_2_14
displayName: Sanity 2.14
dependsOn: []
@ -67,7 +66,7 @@ stages:
parameters:
targets:
- name: Sanity
test: '2.14/sanity/1'
test: "2.14/sanity/1"
- stage: Ansible_2_13
displayName: Sanity 2.13
dependsOn: []
@ -76,7 +75,7 @@ stages:
parameters:
targets:
- name: Sanity
test: '2.13/sanity/1'
test: "2.13/sanity/1"
- stage: Ansible_2_12
displayName: Sanity 2.12
dependsOn: []
@ -85,10 +84,9 @@ stages:
parameters:
targets:
- name: Sanity
test: '2.12/sanity/1'
test: "2.12/sanity/1"
## Integration tests (remote)
## Integration tests (remote)
- stage: Hetzner_devel
displayName: Hetzner devel
dependsOn: []
@ -101,7 +99,7 @@ stages:
- 3
targets:
- name: hcloud
test: 'devel/hcloud/3.9'
test: "devel/hcloud/3.9"
- stage: Hetzner_2_15
displayName: Hetzner 2.15
@ -115,7 +113,7 @@ stages:
- 3
targets:
- name: hcloud
test: '2.15/hcloud/3.9'
test: "2.15/hcloud/3.9"
- stage: Hetzner_2_14
displayName: Hetzner 2.14
@ -129,7 +127,7 @@ stages:
- 3
targets:
- name: hcloud
test: '2.14/hcloud/3.9'
test: "2.14/hcloud/3.9"
- stage: Hetzner_2_13
displayName: Hetzner 2.13
@ -143,7 +141,7 @@ stages:
- 3
targets:
- name: hcloud
test: '2.13/hcloud/3.9'
test: "2.13/hcloud/3.9"
- stage: Hetzner_2_12
displayName: Hetzner 2.12
@ -157,9 +155,9 @@ stages:
- 3
targets:
- name: hcloud
test: '2.12/hcloud/3.9'
test: "2.12/hcloud/3.9"
### Finally
### Finally
- stage: Summary
condition: succeededOrFailed()
dependsOn:

View file

@ -45,11 +45,11 @@ jobs:
parameters:
jobs:
- ${{ if eq(length(parameters.groups), 0) }}:
- ${{ each target in parameters.targets }}:
- name: ${{ format(parameters.nameFormat, coalesce(target.name, target.test)) }}
test: ${{ format(parameters.testFormat, coalesce(target.test, target.name)) }}
- ${{ if not(eq(length(parameters.groups), 0)) }}:
- ${{ each group in parameters.groups }}:
- ${{ each target in parameters.targets }}:
- name: ${{ format(format(parameters.nameGroupFormat, parameters.nameFormat), coalesce(target.name, target.test), group) }}
test: ${{ format(format(parameters.testGroupFormat, parameters.testFormat), coalesce(target.test, target.name), group) }}
- name: ${{ format(parameters.nameFormat, coalesce(target.name, target.test)) }}
test: ${{ format(parameters.testFormat, coalesce(target.test, target.name)) }}
- ${{ if not(eq(length(parameters.groups), 0)) }}:
- ${{ each group in parameters.groups }}:
- ${{ each target in parameters.targets }}:
- name: ${{ format(format(parameters.nameGroupFormat, parameters.nameFormat), coalesce(target.name, target.test), group) }}
test: ${{ format(format(parameters.testGroupFormat, parameters.testFormat), coalesce(target.test, target.name), group) }}

View file

@ -9,37 +9,37 @@ parameters:
jobs:
- ${{ each job in parameters.jobs }}:
- job: test_${{ replace(replace(replace(job.test, '/', '_'), '.', '_'), '-', '_') }}
displayName: ${{ job.name }}
container: default
workspace:
clean: all
steps:
- checkout: self
fetchDepth: $(fetchDepth)
path: $(checkoutPath)
- bash: .azure-pipelines/scripts/run-tests.sh "$(entryPoint)" "${{ job.test }}" "$(coverageBranches)"
displayName: Run Tests
- bash: .azure-pipelines/scripts/process-results.sh
condition: succeededOrFailed()
displayName: Process Results
- bash: .azure-pipelines/scripts/aggregate-coverage.sh "$(Agent.TempDirectory)"
condition: eq(variables.haveCoverageData, 'true')
displayName: Aggregate Coverage Data
- task: PublishTestResults@2
condition: eq(variables.haveTestResults, 'true')
inputs:
testResultsFiles: "$(outputPath)/junit/*.xml"
displayName: Publish Test Results
- task: PublishPipelineArtifact@1
condition: eq(variables.haveBotResults, 'true')
displayName: Publish Bot Results
inputs:
targetPath: "$(outputPath)/bot/"
artifactName: "Bot $(System.JobAttempt) $(System.StageDisplayName) $(System.JobDisplayName)"
- task: PublishPipelineArtifact@1
condition: eq(variables.haveCoverageData, 'true')
displayName: Publish Coverage Data
inputs:
targetPath: "$(Agent.TempDirectory)/coverage/"
artifactName: "Coverage $(System.JobAttempt) $(System.StageDisplayName) $(System.JobDisplayName)"
- job: test_${{ replace(replace(replace(job.test, '/', '_'), '.', '_'), '-', '_') }}
displayName: ${{ job.name }}
container: default
workspace:
clean: all
steps:
- checkout: self
fetchDepth: $(fetchDepth)
path: $(checkoutPath)
- bash: .azure-pipelines/scripts/run-tests.sh "$(entryPoint)" "${{ job.test }}" "$(coverageBranches)"
displayName: Run Tests
- bash: .azure-pipelines/scripts/process-results.sh
condition: succeededOrFailed()
displayName: Process Results
- bash: .azure-pipelines/scripts/aggregate-coverage.sh "$(Agent.TempDirectory)"
condition: eq(variables.haveCoverageData, 'true')
displayName: Aggregate Coverage Data
- task: PublishTestResults@2
condition: eq(variables.haveTestResults, 'true')
inputs:
testResultsFiles: "$(outputPath)/junit/*.xml"
displayName: Publish Test Results
- task: PublishPipelineArtifact@1
condition: eq(variables.haveBotResults, 'true')
displayName: Publish Bot Results
inputs:
targetPath: "$(outputPath)/bot/"
artifactName: "Bot $(System.JobAttempt) $(System.StageDisplayName) $(System.JobDisplayName)"
- task: PublishPipelineArtifact@1
condition: eq(variables.haveCoverageData, 'true')
displayName: Publish Coverage Data
inputs:
targetPath: "$(Agent.TempDirectory)/coverage/"
artifactName: "Coverage $(System.JobAttempt) $(System.StageDisplayName) $(System.JobDisplayName)"