Skip to content

Commit

Permalink
trying make lint
Browse files Browse the repository at this point in the history
  • Loading branch information
dhritinaidu committed Jul 18, 2024
1 parent 6feb479 commit 8c59c2b
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 1 deletion.
27 changes: 27 additions & 0 deletions .github/workflows/test.yml
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
- name: Run unit tests
run: make test
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,11 @@ docker-amd64-ci:
test:
go test ./oceanprefilter


# Docker image and container details
DOCKER_IMAGE := ghcr.io/viamrobotics/ocean-prefilter:arm64

# Lint rule
lint:
golangci-lint run

2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/viamrobotics/ocean-prefilter

go 1.21
go 1.21.7

toolchain go1.21.12

Expand Down

0 comments on commit 8c59c2b

Please sign in to comment.