ubc-cirrus-lab / caribou

Caribou is a framework for geo-distributed deployment of serverless workflows to save carbon emissions.
Other
7 stars 0 forks source link

Add go-lint to workflow.yaml #289

Open vGsteiger opened 2 months ago

vGsteiger commented 2 months ago

Make the Go code golint compatible, then add the following to workflow.yaml:

go-lint:
  runs-on: ubuntu-latest
  if: ${{ !github.event.pull_request.draft }}
  timeout-minutes: 5
  steps:
    - uses: actions/checkout@v2
    - name: Setup Go
      uses: ./.github/actions/go
    - name: Run Go linters
      run: |
        cd caribou-go
        go get -u golang.org/x/lint/golint
        golint ./...
        go vet ./...