diff --git a/.harness/github_push.yaml b/.harness/github_push.yaml new file mode 100644 index 0000000..776b7f2 --- /dev/null +++ b/.harness/github_push.yaml @@ -0,0 +1,26 @@ +inputSet: + name: github_push + tags: {} + identifier: github_push + orgIdentifier: default + projectIdentifier: IPA_Release + pipeline: + identifier: aiohttp_responses + template: + templateInputs: + properties: + ci: + codebase: + build: + type: branch + spec: + branch: <+trigger.branch> + stages: + - parallel: + - stage: + identifier: snyk_tests + type: CI + variables: + - name: RUN_SNYK + type: String + value: "FALSE" diff --git a/.harness/pipeline.yaml b/.harness/pipeline.yaml new file mode 100644 index 0000000..d22f585 --- /dev/null +++ b/.harness/pipeline.yaml @@ -0,0 +1,108 @@ +pipeline: + name: aiohttp_responses + identifier: aiohttp_responses + tags: {} + template: + templateRef: account.shared_library + versionLabel: 1.1.0 + gitBranch: main + templateInputs: + properties: + ci: + codebase: + build: <+input> + stages: + - stage: + identifier: build_info + type: CI + spec: + infrastructure: + type: KubernetesDirect + spec: + nodeSelector: + node_group: cpu + - parallel: + - stage: + identifier: code_checks + template: + templateInputs: + type: CI + variables: + - name: RUN_LINTER + type: String + value: "TRUE" + - name: isort + type: String + value: isort --check-only --profile black aiohttp_responses tests + - name: black + type: String + value: black --check aiohttp_responses tests + - name: ruff + type: String + value: "" + - name: mypy + type: String + value: "" + - name: pylint + type: String + value: "" + - stage: + identifier: build_containers + type: CI + variables: + - name: test_poetry_args + type: String + value: " " + - name: deploy_poetry_args + type: String + value: " " + - name: test_ram + type: String + value: 2G + - name: deploy_ram + type: String + value: 2G + - parallel: + - stage: + identifier: unit_tests + template: + templateInputs: + type: CI + variables: + - name: test_command + type: String + value: " " + - name: git_lfs + type: String + value: "FALSE" + - name: node_selector + type: String + value: cpu + - name: test_ram + type: String + value: 2G + - name: test_cpu + type: String + value: 1000m + - stage: + identifier: snyk_tests + type: CI + variables: + - name: RUN_SNYK + type: String + value: <+input>.default(TRUE).allowedValues(TRUE,FALSE) + - name: container_ram + type: String + value: 2G + variables: + - name: repo + type: String + value: aiohttp_responses + - name: service + type: String + value: aiohttp_responses + - name: RUN_UNITTESTS + type: String + value: "FALSE" + projectIdentifier: IPA_Release + orgIdentifier: default diff --git a/.harness/snyk_filter.yaml b/.harness/snyk_filter.yaml new file mode 100644 index 0000000..55bf683 --- /dev/null +++ b/.harness/snyk_filter.yaml @@ -0,0 +1,6 @@ +container: + enabled: false + exemptions: [] +oss: + enabled: true + exemptions: []