-
Notifications
You must be signed in to change notification settings - Fork 3
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
RSDK-8017: linting action #9
Merged
Merged
Changes from 53 commits
Commits
Show all changes
60 commits
Select commit
Hold shift + click to select a range
8de33fb
added unit tests
dhritinaidu e43ec36
added linting action and fixed linting issues
dhritinaidu fe4a9ad
added a timeout to lint yml
dhritinaidu 6ca5232
Merge pull request #8 from dhritinaidu/unittests
dhritinaidu 0924387
trying to fix timeout
dhritinaidu c43673d
trying to fix lint github action
dhritinaidu 5ced2cc
trying to fix dependencies
dhritinaidu af0ee9f
runnning linter on docker container
dhritinaidu b27de39
running linter on docker container
dhritinaidu d62585f
trying to fix lint errors
dhritinaidu 8d4e236
trying to fix go set up
dhritinaidu 0c33128
trying to fix go set up
dhritinaidu 9f97185
trying to fix VCS linting issue
dhritinaidu ca57379
trying to fix VCS linting issue pt 2
dhritinaidu 1ed25a1
trying to fix VCS linting issue pt 2
dhritinaidu 09de4d4
trying to fix VCS linting issue pt 3
dhritinaidu f49a182
trying to fix VCS linting issue pt 4
dhritinaidu d262fee
trying to fix VCS linting issue pt 5
dhritinaidu 86fd372
trying to fix VCS linting issue pt 5
dhritinaidu d9f7320
trying to fix VCS linting issue pt 6
dhritinaidu ebd8136
trying to fix VCS linting issue pt 7
dhritinaidu 446da7a
trying to fix VCS linting issue pt 8
dhritinaidu 2cecd4b
trying to fix VCS linting issue pt 9
dhritinaidu 375360b
trying to fix VCS linting issue pt 10
dhritinaidu 7bb45c3
trying make lint
dhritinaidu 223d65f
added golangci-lint to docker image
dhritinaidu da6ef0e
Merge branch 'main' into RSDK-8017-docker-img-update
bhaney d2bc5e3
Merge pull request #10 from viamrobotics/RSDK-8017-docker-img-update
dhritinaidu 10f4ea0
added linting action and fixed linting issues
dhritinaidu ac8e49c
added a timeout to lint yml
dhritinaidu 0747746
trying to fix timeout
dhritinaidu 9e3f196
trying to fix lint github action
dhritinaidu 501a9fd
trying to fix dependencies
dhritinaidu e4d49c3
runnning linter on docker container
dhritinaidu f26b226
running linter on docker container
dhritinaidu 19f74db
trying to fix lint errors
dhritinaidu 5f63d2a
trying to fix go set up
dhritinaidu aaf8090
trying to fix go set up
dhritinaidu 0867026
trying to fix VCS linting issue
dhritinaidu dde6c56
trying to fix VCS linting issue pt 2
dhritinaidu 11b0771
trying to fix VCS linting issue pt 2
dhritinaidu 1da1dbf
trying to fix VCS linting issue pt 3
dhritinaidu 319c4af
trying to fix VCS linting issue pt 4
dhritinaidu d5ba46a
trying to fix VCS linting issue pt 5
dhritinaidu 6801572
trying to fix VCS linting issue pt 5
dhritinaidu 3a35714
trying to fix VCS linting issue pt 6
dhritinaidu 92d74d8
trying to fix VCS linting issue pt 7
dhritinaidu c95be9f
trying to fix VCS linting issue pt 8
dhritinaidu a8f8d95
trying to fix VCS linting issue pt 9
dhritinaidu 6feb479
trying to fix VCS linting issue pt 10
dhritinaidu 8c59c2b
trying make lint
dhritinaidu 4e6daa2
added timeout to lint
dhritinaidu 8a66ff8
fixed makefile conflict
dhritinaidu 50f9fad
trying to fix VCS error
dhritinaidu bbe55a2
go mod tidy
dhritinaidu 13a93ab
fixing go version
dhritinaidu 361b606
testing make lint
dhritinaidu c1ac4cc
testing make lint without make test
dhritinaidu 75d59d8
adding make test back in
dhritinaidu e6baa64
added path to make test
dhritinaidu 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 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,38 @@ | ||
name: golangci-lint | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- master | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
permissions: | ||
contents: read | ||
# Optional: allow read access to pull request. Use with `only-new-issues` option. | ||
pull-requests: read | ||
|
||
jobs: | ||
golangci: | ||
name: lint for linux/arm64 | ||
runs-on: [buildjet-2vcpu-ubuntu-2204-arm] | ||
container: | ||
image: ghcr.io/viamrobotics/ocean-prefilter:arm64 | ||
options: --platform linux/arm64 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
buildvcs: false | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: 1.15 | ||
- name: golangci-lint | ||
uses: golangci/golangci-lint-action@v6 | ||
with: | ||
version: v1.59 | ||
args: --timeout 10m |
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Run lint & unit tests | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
jobs: | ||
build: | ||
name: "Run unit tests" | ||
runs-on: [buildjet-2vcpu-ubuntu-2204-arm] | ||
container: | ||
image: ghcr.io/viamrobotics/ocean-prefilter:arm64 | ||
options: --platform linux/arm64 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
|
||
|
||
- name: Run lint | ||
run: | | ||
make lint | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If you already lint in the other github action, you don't need to lint here as well |
||
- name: Run unit tests | ||
run: make test |
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
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.
Oops, something went wrong.
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.
this go version is too low -- we are on go version 1.21