Skip to content

WIP: using a context #19

WIP: using a context

WIP: using a context #19

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" ]
env:
SUBMODULE: locket
jobs:
lint:
runs-on: ubuntu-latest
container: cloudfoundry/tas-runtime-build
steps:
- name: Check out repository code
uses: actions/checkout@v4
with:
repository: cloudfoundry/diego-release
ref: refs/heads/develop
submodules: recursive
- name: Confirm go version
run: go version
- name: Run `go vet`
working-directory: "src/code.cloudfoundry.org/${{ env.SUBMODULE }}"
run: go vet ./...
- name: Run `staticcheck`
working-directory: "src/code.cloudfoundry.org/${{ env.SUBMODULE }}"
run: GOFLAGS="-buildvcs=false" staticcheck ./...