checklocks.yml 886 B

12345678910111213141516171819202122232425262728293031323334
  1. name: checklocks
  2. on:
  3. push:
  4. branches:
  5. - main
  6. pull_request:
  7. paths:
  8. - '**/*.go'
  9. - '.github/workflows/checklocks.yml'
  10. concurrency:
  11. group: ${{ github.workflow }}-$${{ github.head_ref || github.run_id }}
  12. cancel-in-progress: true
  13. jobs:
  14. checklocks:
  15. runs-on: [ ubuntu-latest ]
  16. steps:
  17. - name: Check out code
  18. uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
  19. - name: Build checklocks
  20. run: ./tool/go build -o /tmp/checklocks gvisor.dev/gvisor/tools/checklocks/cmd/checklocks
  21. - name: Run checklocks vet
  22. # TODO(#12625): add more packages as we add annotations
  23. run: |-
  24. ./tool/go vet -vettool=/tmp/checklocks \
  25. ./envknob \
  26. ./ipn/store/mem \
  27. ./net/stun/stuntest \
  28. ./net/wsconn \
  29. ./proxymap