Skip to content

Commit

Permalink
Merge branch 'develop' into feature/1307-gha-linting
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSkrypnyk authored May 3, 2024
2 parents 6e1def0 + 0926325 commit 758a376
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .scaffold/tests/bats/_helper.circleci.bash
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ circleci_get_previous_job_numbers() {
workflow_id="$(circleci_get_workflow_id_from_job_number "${current_job_number}")"

workflow_data="$(curl -sSL --request GET \
-H "Authorization: Basic $(echo -n "${TEST_CIRCLECI_TOKEN}" | base64)" \
--header "Circle-Token: $TEST_CIRCLECI_TOKEN" \
"https:/circleci.com/api/v2/workflow/${workflow_id}/job")"

dependencies_job_ids="$(echo "${workflow_data}" | jq -r ".items[] | select(.job_number == ${current_job_number}) | .dependencies[]")"
Expand All @@ -28,7 +28,7 @@ circleci_get_previous_job_numbers() {
#
circleci_get_workflow_id_from_job_number() {
curl -sSL --request GET \
-H "Authorization: Basic $(echo -n "${TEST_CIRCLECI_TOKEN}" | base64)" \
--header "Circle-Token: $TEST_CIRCLECI_TOKEN" \
"https:/circleci.com/api/v2/project/gh/${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}/job/${1}" |
jq -r '.latest_workflow.id'
}
Expand All @@ -38,7 +38,7 @@ circleci_get_workflow_id_from_job_number() {
#
circleci_get_job_artifacts() {
curl -sSL --request GET \
-H "Authorization: Basic $(echo -n "${TEST_CIRCLECI_TOKEN}" | base64)" \
--header "Circle-Token: $TEST_CIRCLECI_TOKEN" \
"https:/circleci.com/api/v2/project/gh/${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}/${1}/artifacts"
}

Expand All @@ -47,6 +47,6 @@ circleci_get_job_artifacts() {
#
circleci_get_job_test_metadata() {
curl -sSL --request GET \
-H "Authorization: Basic $(echo -n "${TEST_CIRCLECI_TOKEN}" | base64)" \
--header "Circle-Token: $TEST_CIRCLECI_TOKEN" \
"https:/circleci.com/api/v2/project/gh/${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}/${1}/tests"
}
7 changes: 7 additions & 0 deletions .scaffold/tests/bats/workflow.utilities.bats
Original file line number Diff line number Diff line change
Expand Up @@ -130,3 +130,10 @@ load _helper.workflow.bash
assert_output_not_contains ">question<"
assert_output_not_contains ">wontfix<"
}

@test "Renovate - Check config" {
prepare_sut "Starting utilities tests in build directory ${BUILD_DIR}"

run npx --yes --package renovate -- renovate-config-validator --strict
assert_success
}

1 comment on commit 758a376

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.