-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run prettier on the pipeline yaml files (#2979)
* move prettierrc up one level * add a prettierignore * update files
- Loading branch information
Showing
19 changed files
with
548 additions
and
537 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
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 |
---|---|---|
|
@@ -15,132 +15,132 @@ | |
trigger: | ||
branches: | ||
include: | ||
- master | ||
- master | ||
paths: | ||
exclude: | ||
- docs/* | ||
- docs/* | ||
tags: | ||
include: | ||
- v2* | ||
- v2* | ||
|
||
pr: | ||
branches: | ||
include: | ||
- master | ||
- master | ||
paths: | ||
exclude: | ||
- docs/* | ||
- docs/* | ||
|
||
resources: | ||
containers: | ||
- container: golang | ||
image: registry.access.redhat.com/ubi8/go-toolset:1.18 | ||
options: --user=0 | ||
- container: python | ||
image: registry.access.redhat.com/ubi8/python-39:latest | ||
options: --user=0 | ||
- container: golang | ||
image: registry.access.redhat.com/ubi8/go-toolset:1.18 | ||
options: --user=0 | ||
- container: python | ||
image: registry.access.redhat.com/ubi8/python-39:latest | ||
options: --user=0 | ||
|
||
variables: | ||
- template: vars.yml | ||
- template: vars.yml | ||
|
||
jobs: | ||
- job: Golang_CodeQL | ||
pool: | ||
name: 1es-aro-ci-pool | ||
variables: | ||
HOME: $(Agent.BuildDirectory) | ||
steps: | ||
- template: ./templates/template-checkout.yml | ||
- template: ./templates/template-codeql.yml | ||
parameters: | ||
language: go | ||
target: golang | ||
github_token: $(github_codeql_upload_token) | ||
timeoutInMinutes: 120 | ||
- job: Golang_CodeQL | ||
pool: | ||
name: 1es-aro-ci-pool | ||
variables: | ||
HOME: $(Agent.BuildDirectory) | ||
steps: | ||
- template: ./templates/template-checkout.yml | ||
- template: ./templates/template-codeql.yml | ||
parameters: | ||
language: go | ||
target: golang | ||
github_token: $(github_codeql_upload_token) | ||
timeoutInMinutes: 120 | ||
|
||
- job: Python_Unit_Tests | ||
pool: | ||
name: 1es-aro-ci-pool | ||
variables: | ||
HOME: $(Agent.BuildDirectory) | ||
steps: | ||
- template: ./templates/template-checkout.yml | ||
- script: | | ||
set -xe | ||
make test-python | ||
[[ -z "$(git status -s)" ]] | ||
displayName: 🧪Run Python Unit Tests | ||
target: python | ||
- job: Python_Unit_Tests | ||
pool: | ||
name: 1es-aro-ci-pool | ||
variables: | ||
HOME: $(Agent.BuildDirectory) | ||
steps: | ||
- template: ./templates/template-checkout.yml | ||
- script: | | ||
set -xe | ||
make test-python | ||
[[ -z "$(git status -s)" ]] | ||
displayName: 🧪Run Python Unit Tests | ||
target: python | ||
- job: Golang_Unit_Tests | ||
pool: | ||
name: 1es-aro-ci-pool | ||
variables: | ||
GOCACHE: /tmp/gocache | ||
steps: | ||
- template: ./templates/template-checkout.yml | ||
- job: Golang_Unit_Tests | ||
pool: | ||
name: 1es-aro-ci-pool | ||
variables: | ||
GOCACHE: /tmp/gocache | ||
steps: | ||
- template: ./templates/template-checkout.yml | ||
|
||
- script: | | ||
set -xe | ||
go version | ||
go env | ||
displayName: Print Go version & env | ||
target: golang | ||
- script: | | ||
set -xe | ||
go version | ||
go env | ||
displayName: Print Go version & env | ||
target: golang | ||
- script: | | ||
set -xe | ||
make generate | ||
[[ -z "$(git status -s)" ]] | ||
displayName: ⚙️ Run Golang code generate | ||
target: golang | ||
- script: | | ||
set -xe | ||
make generate | ||
[[ -z "$(git status -s)" ]] | ||
displayName: ⚙️ Run Golang code generate | ||
target: golang | ||
- script: | | ||
set -xe | ||
make build-all | ||
[[ -z "$(git status -s)" ]] | ||
displayName: 🕵️ Build Golang code | ||
target: golang | ||
- script: | | ||
set -xe | ||
make build-all | ||
[[ -z "$(git status -s)" ]] | ||
displayName: 🕵️ Build Golang code | ||
target: golang | ||
- script: | | ||
set -xe | ||
make unit-test-go | ||
displayName: 🧪 Run Golang unit tests | ||
target: golang | ||
- script: | | ||
set -xe | ||
make unit-test-go | ||
displayName: 🧪 Run Golang unit tests | ||
target: golang | ||
- script: | | ||
set -xe | ||
make validate-fips | ||
displayName: 🕵️ Validate FIPS | ||
target: golang | ||
- script: | | ||
set -xe | ||
make validate-fips | ||
displayName: 🕵️ Validate FIPS | ||
target: golang | ||
- task: PublishTestResults@2 | ||
displayName: 📊 Publish tests results | ||
inputs: | ||
testResultsFiles: $(System.DefaultWorkingDirectory)/**/report.xml | ||
condition: succeededOrFailed() | ||
- task: PublishTestResults@2 | ||
displayName: 📊 Publish tests results | ||
inputs: | ||
testResultsFiles: $(System.DefaultWorkingDirectory)/**/report.xml | ||
condition: succeededOrFailed() | ||
|
||
- script: | | ||
set -xe | ||
go run github.com/axw/gocov/[email protected] convert cover.out | go run github.com/AlekSi/[email protected] > coverage.xml | ||
displayName: ⚙️ Process Reports | ||
condition: succeededOrFailed() | ||
target: golang | ||
- script: | | ||
set -xe | ||
go run github.com/axw/gocov/[email protected] convert cover.out | go run github.com/AlekSi/[email protected] > coverage.xml | ||
displayName: ⚙️ Process Reports | ||
condition: succeededOrFailed() | ||
target: golang | ||
- task: PublishCodeCoverageResults@1 | ||
displayName: 📈 Publish code coverage | ||
inputs: | ||
codeCoverageTool: Cobertura | ||
summaryFileLocation: $(System.DefaultWorkingDirectory)/**/coverage.xml | ||
failIfCoverageEmpty: false | ||
condition: succeededOrFailed() | ||
target: golang | ||
- task: PublishCodeCoverageResults@1 | ||
displayName: 📈 Publish code coverage | ||
inputs: | ||
codeCoverageTool: Cobertura | ||
summaryFileLocation: $(System.DefaultWorkingDirectory)/**/coverage.xml | ||
failIfCoverageEmpty: false | ||
condition: succeededOrFailed() | ||
target: golang | ||
|
||
- job: Lint_Admin_Portal | ||
pool: | ||
name: 1es-aro-ci-pool | ||
steps: | ||
- template: ./templates/template-checkout.yml | ||
- script: | | ||
set -xe | ||
make lint-admin-portal | ||
displayName: 🧹 Lint Admin Portal | ||
- job: Lint_Admin_Portal | ||
pool: | ||
name: 1es-aro-ci-pool | ||
steps: | ||
- template: ./templates/template-checkout.yml | ||
- script: | | ||
set -xe | ||
make lint-admin-portal | ||
displayName: 🧹 Lint Admin Portal |
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
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
Oops, something went wrong.