-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added unit tests * added linting action and fixed linting issues * added a timeout to lint yml * trying to fix timeout * trying to fix lint github action * trying to fix dependencies * runnning linter on docker container * running linter on docker container * trying to fix lint errors * trying to fix go set up * trying to fix go set up * trying to fix VCS linting issue * trying to fix VCS linting issue pt 2 * trying to fix VCS linting issue pt 2 * trying to fix VCS linting issue pt 3 * trying to fix VCS linting issue pt 4 * trying to fix VCS linting issue pt 5 * trying to fix VCS linting issue pt 5 * trying to fix VCS linting issue pt 6 * trying to fix VCS linting issue pt 7 * trying to fix VCS linting issue pt 8 * trying to fix VCS linting issue pt 9 * trying to fix VCS linting issue pt 10 * trying make lint * added golangci-lint to docker image * added linting action and fixed linting issues * added a timeout to lint yml * trying to fix timeout * trying to fix lint github action * trying to fix dependencies * runnning linter on docker container * running linter on docker container * trying to fix lint errors * trying to fix go set up * trying to fix go set up * trying to fix VCS linting issue * trying to fix VCS linting issue pt 2 * trying to fix VCS linting issue pt 2 * trying to fix VCS linting issue pt 3 * trying to fix VCS linting issue pt 4 * trying to fix VCS linting issue pt 5 * trying to fix VCS linting issue pt 5 * trying to fix VCS linting issue pt 6 * trying to fix VCS linting issue pt 7 * trying to fix VCS linting issue pt 8 * trying to fix VCS linting issue pt 9 * trying to fix VCS linting issue pt 10 * trying make lint * added timeout to lint * trying to fix VCS error * go mod tidy * fixing go version * testing make lint * testing make lint without make test * adding make test back in * added path to make test --------- Co-authored-by: Bijan Haney <[email protected]>
- Loading branch information
1 parent
b06f33f
commit 96b20c8
Showing
7 changed files
with
87 additions
and
100 deletions.
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,31 @@ | ||
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: Set up Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: '1.21' | ||
|
||
|
||
|
||
- name: Run lint | ||
run: make lint | ||
|
||
- 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.