Skip to content

Commit

Permalink
trying to fix VCS error
Browse files Browse the repository at this point in the history
  • Loading branch information
dhritinaidu committed Jul 18, 2024
1 parent 8a66ff8 commit 50f9fad
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 35 deletions.
68 changes: 34 additions & 34 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
name: golangci-lint
# name: golangci-lint

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
# concurrency:
# group: ${{ github.workflow }}-${{ github.ref }}

on:
push:
branches:
- main
- master
pull_request:
branches:
- main
# 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
# 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
# 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
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,6 @@ DOCKER_IMAGE := ghcr.io/viamrobotics/ocean-prefilter:arm64

# Lint rule
lint:
golangci-lint run --timeout 10m
GOFLAGS="-buildvcs=false" golangci-lint run --timeout 10m ./


0 comments on commit 50f9fad

Please sign in to comment.