Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Merges master into dev #2443

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
bfc18aa
doc: Updates `mongodbatlas_global_cluster_config` doc about self-mana…
lantoli Jun 27, 2024
78e6eba
test: Unifies Azure and GCP networking tests (#2371)
lantoli Jun 27, 2024
c647bf2
chore: Updates examples link in index.html.markdown for v1.17.3 release
svc-apix-Bot Jun 27, 2024
1fad9f4
chore: Updates CHANGELOG.md header for v1.17.3 release
svc-apix-Bot Jun 27, 2024
45bc5e5
doc: Updates Terraform Compatibility Matrix documentation (#2370)
svc-apix-Bot Jul 1, 2024
7068f36
use ComposeAggregateTestCheckFunc (#2375)
lantoli Jul 1, 2024
27ca92a
chore: Updates asdf to TF 1.9.0 and compatibility matrix body (#2376)
lantoli Jul 1, 2024
ac3f1fd
fix: stale.yaml gh action (#2379)
andreaangiolillo Jul 1, 2024
31d4381
doc: Updates alert-config examples (#2378)
EspenAlbert Jul 2, 2024
f2078c5
chore: Updates Atlas Go SDK (#2380)
svc-apix-Bot Jul 2, 2024
2b82c1a
chore: Bump github.com/aws/aws-sdk-go from 1.54.8 to 1.54.13 (#2383)
dependabot[bot] Jul 3, 2024
15143f0
chore: Bump amannn/action-semantic-pull-request from 5.5.2 to 5.5.3 (…
dependabot[bot] Jul 3, 2024
d6ac0c8
test: Improves tests for mongodbatlas_search_index (#2384)
lantoli Jul 3, 2024
789f38a
chore: Updates nightly tests to TF 1.9.x (#2386)
lantoli Jul 3, 2024
5dffb29
fix: Emptying cloud_back_schedule "copy_settings" (#2387)
EspenAlbert Jul 4, 2024
7de7e64
chore: Updates CHANGELOG.md for #2387
svc-apix-Bot Jul 4, 2024
2288b94
chore: Updates delete logic for `mongodbatlas_search_deployment` (#2389)
lantoli Jul 4, 2024
76ffb69
refactor: use advanced_cluster instead of cluster (#2392)
EspenAlbert Jul 9, 2024
249a523
fix: Returns error if the analyzers attribute contains unknown fields…
marcosuma Jul 9, 2024
4377ba1
chore: Updates CHANGELOG.md for #2394
svc-apix-Bot Jul 9, 2024
b6cdcbf
chore: Bump github.com/aws/aws-sdk-go from 1.54.13 to 1.54.17 (#2401)
dependabot[bot] Jul 10, 2024
5b551d7
chore: Bump github.com/hashicorp/terraform-plugin-testing (#2400)
dependabot[bot] Jul 10, 2024
6e8a5cd
chore: Bump github.com/hashicorp/terraform-plugin-framework (#2398)
dependabot[bot] Jul 10, 2024
4bc8a07
chore: Bump github.com/hashicorp/terraform-plugin-framework-validator…
dependabot[bot] Jul 10, 2024
ec5424b
test: Uses hclwrite to generate the cluster for GetClusterInfo (#2404)
EspenAlbert Jul 11, 2024
9f78a9e
fix: Fixes `disk_iops` attribute for Azure cloud provider in `mongodb…
lantoli Jul 11, 2024
93733ef
chore: Updates CHANGELOG.md for #2396
svc-apix-Bot Jul 11, 2024
dd7d62b
test: Refactors `mongodbatlas_private_endpoint_regional_mode` to use …
EspenAlbert Jul 12, 2024
c5c5bd7
test: Refactors resource tests to use GetClusterInfo `online_archive`…
EspenAlbert Jul 12, 2024
c2b384b
update .tool-versions (#2417)
lantoli Jul 12, 2024
749292c
feat: Adds `stored_source` attribute to `mongodbatlas_search_index` r…
lantoli Jul 14, 2024
011e6a2
chore: Updates CHANGELOG.md for #2388
svc-apix-Bot Jul 14, 2024
d0c7113
doc: Improves Guides menu (#2408)
lantoli Jul 15, 2024
e2b3a96
test: Refactors resource tests to use GetClusterInfo `ldap_configurat…
EspenAlbert Jul 15, 2024
4c9c392
test: Refactors resource tests to use GetClusterInfo `cloud_backup_sn…
EspenAlbert Jul 15, 2024
c1cb5fd
doc: Clarify usage of maintenance window resource (#2418)
AgustinBettati Jul 15, 2024
3110a52
test: Refactors resource tests to use GetClusterInfo `cloud_backup_sc…
EspenAlbert Jul 15, 2024
6674f82
test: Refactors resource tests to use GetClusterInfo `federated_datab…
EspenAlbert Jul 15, 2024
d1c25f0
doc: Removes docs headers as they are not needed (#2422)
lantoli Jul 15, 2024
35e2a87
test: Refactors resource tests to use GetClusterInfo `backup_complian…
EspenAlbert Jul 16, 2024
3f45cca
test: Refactors resource tests to use GetClusterInfo `cluster_outage_…
EspenAlbert Jul 16, 2024
f9a1809
test: Fixes DUPLICATE_CLUSTER_NAME failures (#2424)
EspenAlbert Jul 16, 2024
fa31ccf
test: Refactors GetClusterInfo (#2426)
EspenAlbert Jul 16, 2024
4e3144c
doc: Updates to new Terraform doc structure (#2425)
lantoli Jul 16, 2024
87ca68d
chore: Bump github.com/zclconf/go-cty from 1.14.4 to 1.15.0 (#2433)
dependabot[bot] Jul 17, 2024
b83c28e
chore: Bump github.com/aws/aws-sdk-go from 1.54.17 to 1.54.19 (#2432)
dependabot[bot] Jul 17, 2024
626a83b
chore: Bump actions/setup-go from 5.0.1 to 5.0.2 (#2431)
dependabot[bot] Jul 17, 2024
fae643d
chore: Bump tj-actions/verify-changed-files (#2430)
dependabot[bot] Jul 17, 2024
bd01af7
refactor: avoid usage of github.com/go-test/deep (use `reflect.DeepEq…
EspenAlbert Jul 17, 2024
214b694
chore: Deletes modules folder (#2435)
lantoli Jul 17, 2024
de0ab51
chore: Makes sure doc generation is up-to-date (#2441)
lantoli Jul 18, 2024
9d5c3ee
chore: Enables GitHub Action linter errors in GitHub (#2440)
lantoli Jul 18, 2024
b4b9109
update version (#2439)
lantoli Jul 18, 2024
5cad7be
doc: Updates examples & docs that use replicaSet clusters (#2428)
lantoli Jul 18, 2024
16dcc1c
Merge branch 'master' into CLOUDP-212932-dev
EspenAlbert Jul 18, 2024
1198aea
test: fix cluster config generation without num_shards
EspenAlbert Jul 18, 2024
2b730db
test: fix usage of replication_spec.id -> replication_spec.external_id
EspenAlbert Jul 18, 2024
7006935
test: attempt fixing TestAccClusterAdvancedCluster_singleShardedMulti…
EspenAlbert Jul 18, 2024
799017e
Revert "test: attempt fixing TestAccClusterAdvancedCluster_singleShar…
EspenAlbert Jul 18, 2024
a19d4a9
Revert "test: fix usage of replication_spec.id -> replication_spec.ex…
EspenAlbert Jul 18, 2024
9bb7237
test: add extra checks missed by merge conflict for checkSingleSharde…
EspenAlbert Jul 18, 2024
e78c924
test: skip failing tests with a reference to the ticket
EspenAlbert Jul 19, 2024
27511cc
test: avoid deprecation warning to fail the test
EspenAlbert Jul 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
11 changes: 11 additions & 0 deletions .changelog/2388.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
```release-note:enhancement
resource/mongodbatlas_search_index: Adds attribute `stored_source`
```

```release-note:enhancement
data-source/mongodbatlas_search_index: Adds attribute `stored_source`
```

```release-note:enhancement
data-source/mongodbatlas_search_indexes: Adds attribute `stored_source`
```
3 changes: 3 additions & 0 deletions .changelog/2394.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
resource/mongodbatlas_search_index: Returns error if the `analyzers` attribute contains unknown fields
```
3 changes: 3 additions & 0 deletions .changelog/2396.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
resource/mongodbatlas_advanced_cluster: Fixes `disk_iops` attribute for Azure cloud provider
```
6 changes: 0 additions & 6 deletions .githooks/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,3 @@ if [ -n "$STAGED_TF_FILES" ]; then
echo "Checking the format of Terraform files"
make tflint
fi

STAGED_WEBSITES_FILES=$(git diff --cached --name-only | grep "website/")
if [ -n "$STAGED_WEBSITES_FILES" ]; then
echo "Checking the format of website files"
make website-lint
fi
3 changes: 1 addition & 2 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Maintained by the MongoDB APIx-Integrations team
* @mongodb/APIx-Integrations


# Changelog entries reviewed by Docs Cloud Team
/.changelog/ @mongodb/docs-cloud-team
/website/ @mongodb/docs-cloud-team
/docs/ @mongodb/docs-cloud-team
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/Bug_Report.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Our support will prioritise issues that contain all the required information tha


### Terraform CLI and Terraform MongoDB Atlas Provider Version
Please ensure your issue is reproducible on a supported Terraform version. You may review our [Terraform version compatibility matrix](https://github.com/mongodb/terraform-provider-mongodbatlas/blob/master/website/docs/index.html.markdown#hashicorp-terraform-version-compatibility-matrix) to know more.
Please ensure your issue is reproducible on a supported Terraform version. You may review our [Terraform version compatibility matrix](https://github.com/mongodb/terraform-provider-mongodbatlas/blob/master/docs/index.md#hashicorp-terraform-version-compatibility-matrix) to know more.
<!---
Run `terraform version` to show the version, and paste the result for Terraform and the MongoDB Atlas Provider between the ``` marks below.

Expand Down
18 changes: 18 additions & 0 deletions .github/actionlint-matcher.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"problemMatcher": [
{
"owner": "actionlint",
"severity": "warning",
"pattern": [
{
"regexp": "^(?:\\x1b\\[\\d+m)?(.+?)(?:\\x1b\\[\\d+m)*:(?:\\x1b\\[\\d+m)*(\\d+)(?:\\x1b\\[\\d+m)*:(?:\\x1b\\[\\d+m)*(\\d+)(?:\\x1b\\[\\d+m)*: (?:\\x1b\\[\\d+m)*(.+?)(?:\\x1b\\[\\d+m)* \\[(.+?)\\]$",
"file": 1,
"line": 2,
"column": 3,
"message": 4,
"code": 5
}
]
}
]
}
19 changes: 19 additions & 0 deletions .github/tflint-matcher.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"problemMatcher": [
{
"owner": "tflint-compact",
"severity": "warning",
"pattern": [
{
"regexp": "^(.+):(\\d+):(\\d+):\\s(Error|Warning|Notice)\\s-\\s(.+)\\s\\((.+)\\)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5,
"code": 6
}
]
}
]
}
42 changes: 22 additions & 20 deletions .github/workflows/acceptance-tests-runner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ jobs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
with:
ref: ${{ inputs.ref || github.ref }}
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
with:
go-version-file: 'go.mod'
- uses: hashicorp/setup-terraform@651471c36a6092792c552e8b1bef71e592b462d8
Expand All @@ -309,7 +309,7 @@ jobs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
with:
ref: ${{ inputs.ref || github.ref }}
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
with:
go-version-file: 'go.mod'
- uses: hashicorp/setup-terraform@651471c36a6092792c552e8b1bef71e592b462d8
Expand Down Expand Up @@ -349,7 +349,7 @@ jobs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
with:
ref: ${{ inputs.ref || github.ref }}
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
with:
go-version-file: 'go.mod'
- uses: hashicorp/setup-terraform@651471c36a6092792c552e8b1bef71e592b462d8
Expand Down Expand Up @@ -382,7 +382,7 @@ jobs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
with:
ref: ${{ inputs.ref || github.ref }}
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
with:
go-version-file: 'go.mod'
- uses: hashicorp/setup-terraform@651471c36a6092792c552e8b1bef71e592b462d8
Expand All @@ -406,7 +406,7 @@ jobs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
with:
ref: ${{ inputs.ref || github.ref }}
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
with:
go-version-file: 'go.mod'
- uses: hashicorp/setup-terraform@651471c36a6092792c552e8b1bef71e592b462d8
Expand All @@ -428,7 +428,7 @@ jobs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
with:
ref: ${{ inputs.ref || github.ref }}
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
with:
go-version-file: 'go.mod'
- uses: hashicorp/setup-terraform@651471c36a6092792c552e8b1bef71e592b462d8
Expand Down Expand Up @@ -473,7 +473,7 @@ jobs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
with:
ref: ${{ inputs.ref || github.ref }}
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
with:
go-version-file: 'go.mod'
- uses: hashicorp/setup-terraform@651471c36a6092792c552e8b1bef71e592b462d8
Expand All @@ -495,7 +495,7 @@ jobs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
with:
ref: ${{ inputs.ref || github.ref }}
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
with:
go-version-file: 'go.mod'
- uses: hashicorp/setup-terraform@651471c36a6092792c552e8b1bef71e592b462d8
Expand All @@ -517,7 +517,7 @@ jobs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
with:
ref: ${{ inputs.ref || github.ref }}
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
with:
go-version-file: 'go.mod'
- uses: hashicorp/setup-terraform@651471c36a6092792c552e8b1bef71e592b462d8
Expand All @@ -539,7 +539,7 @@ jobs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
with:
ref: ${{ inputs.ref || github.ref }}
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
with:
go-version-file: 'go.mod'
- uses: hashicorp/setup-terraform@651471c36a6092792c552e8b1bef71e592b462d8
Expand Down Expand Up @@ -577,7 +577,7 @@ jobs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
with:
ref: ${{ inputs.ref || github.ref }}
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
with:
go-version-file: 'go.mod'
- uses: hashicorp/setup-terraform@651471c36a6092792c552e8b1bef71e592b462d8
Expand All @@ -604,7 +604,7 @@ jobs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
with:
ref: ${{ inputs.ref || github.ref }}
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
with:
go-version-file: 'go.mod'
- uses: hashicorp/setup-terraform@651471c36a6092792c552e8b1bef71e592b462d8
Expand Down Expand Up @@ -633,7 +633,7 @@ jobs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
with:
ref: ${{ inputs.ref || github.ref }}
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
with:
go-version-file: 'go.mod'
- uses: hashicorp/setup-terraform@651471c36a6092792c552e8b1bef71e592b462d8
Expand All @@ -648,6 +648,8 @@ jobs:
AWS_ACCESS_KEY_ID: ${{ secrets.aws_access_key_id }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.aws_secret_access_key }}
AWS_REGION: ${{ vars.AWS_REGION }}
AWS_REGION_UPPERCASE: ${{ vars.AWS_REGION_UPPERCASE }}
AWS_REGION_LOWERCASE: ${{ vars.AWS_REGION_LOWERCASE }}
AWS_SECURITY_GROUP_1: ${{ vars.AWS_SECURITY_GROUP_1 }}
AWS_SECURITY_GROUP_2: ${{ vars.AWS_SECURITY_GROUP_2 }}
AWS_VPC_CIDR_BLOCK: ${{ vars.AWS_VPC_CIDR_BLOCK }}
Expand Down Expand Up @@ -676,7 +678,7 @@ jobs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
with:
ref: ${{ inputs.ref || github.ref }}
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
with:
go-version-file: 'go.mod'
- uses: hashicorp/setup-terraform@651471c36a6092792c552e8b1bef71e592b462d8
Expand Down Expand Up @@ -713,7 +715,7 @@ jobs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
with:
ref: ${{ inputs.ref || github.ref }}
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
with:
go-version-file: 'go.mod'
- uses: hashicorp/setup-terraform@651471c36a6092792c552e8b1bef71e592b462d8
Expand All @@ -738,7 +740,7 @@ jobs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
with:
ref: ${{ inputs.ref || github.ref }}
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
with:
go-version-file: 'go.mod'
- uses: hashicorp/setup-terraform@651471c36a6092792c552e8b1bef71e592b462d8
Expand All @@ -760,7 +762,7 @@ jobs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
with:
ref: ${{ inputs.ref || github.ref }}
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
with:
go-version-file: 'go.mod'
- uses: hashicorp/setup-terraform@651471c36a6092792c552e8b1bef71e592b462d8
Expand All @@ -782,7 +784,7 @@ jobs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
with:
ref: ${{ inputs.ref || github.ref }}
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
with:
go-version-file: 'go.mod'
- uses: hashicorp/setup-terraform@651471c36a6092792c552e8b1bef71e592b462d8
Expand All @@ -809,7 +811,7 @@ jobs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
with:
ref: ${{ inputs.ref || github.ref }}
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
with:
go-version-file: 'go.mod'
- uses: hashicorp/setup-terraform@651471c36a6092792c552e8b1bef71e592b462d8
Expand All @@ -833,7 +835,7 @@ jobs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
with:
ref: ${{ inputs.ref || github.ref }}
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
with:
go-version-file: 'go.mod'
- uses: hashicorp/setup-terraform@651471c36a6092792c552e8b1bef71e592b462d8
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check-changelog-entry-file.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
permissions: {}
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
with:
go-version-file: 'go.mod'
- run: make check-changelog-entry-file
2 changes: 1 addition & 1 deletion .github/workflows/check-migration-guide.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ jobs:
with:
filters: |
guides:
- 'website/docs/guides/**'
- 'docs/guides/**'
- if: ${{ steps.changes.outputs.guides == 'false' }}
run: echo "PR with breaking changes but no migration guide was created or updated" && exit 1
46 changes: 31 additions & 15 deletions .github/workflows/code-health.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
permissions: {}
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
with:
go-version-file: 'go.mod'
- name: Build
Expand All @@ -30,7 +30,7 @@ jobs:
pull-requests: write # Needed by sticky-pull-request-comment
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
with:
go-version-file: 'go.mod'
- name: Unit Test
Expand All @@ -42,35 +42,51 @@ jobs:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- name: Install Go
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
with:
go-version-file: 'go.mod'
cache: false # see https://github.com/golangci/golangci-lint-action/issues/807
- name: golangci-lint
uses: golangci/golangci-lint-action@a4f60bb28d35aeee14e6880718e0c85ff1882e64
with:
version: v1.59.0 # Also update GOLANGCI_VERSION variable in GNUmakefile when updating this version
version: v1.59.1 # Also update GOLANGCI_VERSION variable in GNUmakefile when updating this version
- name: actionlint
run: make tools && actionlint -verbose -color
run: |
make tools
echo "::add-matcher::.github/actionlint-matcher.json"
actionlint -color
shell: bash
website-lint:
shellcheck:
runs-on: ubuntu-latest
permissions: {}
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7
with:
go-version-file: 'go.mod'
- name: website lint
run: make tools && make website-lint
shellcheck:
- name: Run ShellCheck
uses: bewuethr/shellcheck-action@d01912909579c4b1a335828b8fca197fbb8e0aa4
generate-doc-check:
runs-on: ubuntu-latest
permissions: {}
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- name: Run ShellCheck
uses: bewuethr/shellcheck-action@d01912909579c4b1a335828b8fca197fbb8e0aa4
- run: make tools # all resources with auto-generated doc must be specified below here
- name: Doc for control_plane_ip_addresses
run: export resource_name=control_plane_ip_addresses && make generate-doc
- name: Doc for push_based_log_export
run: export resource_name=push_based_log_export && make generate-doc
- name: Doc for search_deployment
run: export resource_name=search_deployment && make generate-doc
- name: Find mutations
id: self_mutation
run: |-
git add .
git diff --staged --patch --exit-code > .repo.patch || echo "self_mutation_happened=true" >> "${GITHUB_OUTPUT}"
- name: Fail build on mutation
if: steps.self_mutation.outputs.self_mutation_happened
run: |-
echo "::error::Files were changed during build (see build log). If this was triggered from a fork, you will need to update your branch."
cat .repo.patch
exit 1
call-acceptance-tests-workflow:
needs: [build, lint, shellcheck, unit-test, website-lint]
needs: [build, lint, shellcheck, unit-test, generate-doc-check]
secrets: inherit
uses: ./.github/workflows/acceptance-tests.yml
Loading
Loading