Skip to content

WIP: Add staticcheck failure #41

WIP: Add staticcheck failure

WIP: Add staticcheck failure #41

Workflow file for this run

# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Lint
on:
push:
branches: [ "actions-lint" ]
pull_request:
branches: [ "actions-lint" ]
jobs:
lint:
runs-on: ubuntu-latest
# container: cloudfoundry/tas-runtime-build
steps:
- name: Check out release
uses: actions/checkout@v4
with:
repository: cloudfoundry/diego-release
ref: refs/heads/develop
submodules: recursive
- name: Check out submodule code
uses: actions/checkout@v4
with:
repository: cloudfoundry/locket
path: src/code.cloudfoundry.org/locket
- name: Setup go
uses: actions/setup-go@v5
with:
cache: false
go-version: '1.24'
check-latest: true
- name: go vet
working-directory: src/code.cloudfoundry.org
run: go vet ./...
- name: staticcheck
uses: dominikh/staticcheck-action@v1
with:
version: "latest"
install-go: false
working-directory: src/code.cloudfoundry.org
# - name: Run `staticcheck`
# working-directory: src/code.cloudfoundry.org/locket
# run: GOFLAGS="-buildvcs=false" staticcheck ./...