-
Notifications
You must be signed in to change notification settings - Fork 189
INTMDB-788: Add Code-health action #1144
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
Merged
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
1d0b5a7
INTMDB-788: Add Code-health action
andreaangiolillo 470dda8
fixed shellcheck errors
andreaangiolillo 2aed077
Update websitefmtcheck.sh
andreaangiolillo e806608
Update code-health.yml
andreaangiolillo 0e16183
Update code-health.yml
andreaangiolillo 113d66b
Update code-health.yml
andreaangiolillo 817ed41
Update code-health.yml
andreaangiolillo 2f1bafa
Update code-health.yml
andreaangiolillo 5b6828a
Update code-health.yml
andreaangiolillo 06c66ed
Update code-health.yml
andreaangiolillo 93f9642
Update code-health.yml
andreaangiolillo a41e30c
fix: microsoft_teams_webhook_url keeps updating on every apply (#1148)
maastha f54faff
INTMDB-783: Point in Time Restore is not enabled when should_copy_opl…
andreaangiolillo ac01234
Rebase v1.10.0 (#1156)
andreaangiolillo 0580e52
INTMDB-710: Serverless Instance wants to do an in-place update on eve…
andreaangiolillo 7f0a188
Merge branch 'master' into release-staging-v.1.10.0
martinstibbe 0891e7b
Merge remote-tracking branch 'origin/release-staging-v.1.10.0' into I…
andreaangiolillo ca8e904
fix merge
andreaangiolillo bb7761a
Merged master
andreaangiolillo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: 'Code Health' | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: "1.20" | ||
- name: Build | ||
run: make build | ||
unit-test: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Set up Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: "1.20" | ||
- name: Unit Test | ||
env: | ||
MONGODB_ATLAS_TEAMS_IDS: ${{ secrets.MONGODB_ATLAS_TEAMS_IDS }} | ||
run: make test | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Install Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: "1.20" | ||
- name: website lint | ||
run: make tools && make website-lint | ||
- name: actionlint | ||
run: make tools && actionlint -verbose -color | ||
- name: golangci-lint | ||
uses: golangci/[email protected] | ||
with: | ||
version: v1.52.2 | ||
args: --timeout 9m0s | ||
shellcheck: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Run ShellCheck | ||
uses: bewuethr/shellcheck-action@v2 | ||
|
This file contains hidden or 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 was deleted.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 |
---|---|---|
|
@@ -73,6 +73,7 @@ tools: ## Install dev tools | |
@echo "==> Installing dependencies..." | ||
go install github.com/client9/misspell/cmd/misspell@latest | ||
go install github.com/terraform-linters/[email protected] | ||
go install github.com/rhysd/actionlint/cmd/actionlint@latest | ||
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(shell go env GOPATH)/bin $(GOLANGCI_VERSION) | ||
|
||
.PHONY: check | ||
|
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @martinstibbe, is this script still used? when I run
make websitefmtcheck
the script says that there are some markdown with formatting errors 😕Should we run this script as part of the code-health action?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since TF registry website test stopped working as the deprecated the local site document testing if we do not call this one via a GH action may not be used golangci-lint run is in current workflows