2023-08-31 20:11:58 +00:00
|
|
|
name: checklocks
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
pull_request:
|
|
|
|
paths:
|
|
|
|
- '**/*.go'
|
|
|
|
- '.github/workflows/checklocks.yml'
|
|
|
|
|
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-$${{ github.head_ref || github.run_id }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
checklocks:
|
|
|
|
runs-on: [ ubuntu-latest ]
|
|
|
|
steps:
|
|
|
|
- name: Check out code
|
2024-09-23 20:52:19 +00:00
|
|
|
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
2023-08-31 20:11:58 +00:00
|
|
|
|
|
|
|
- name: Build checklocks
|
|
|
|
run: ./tool/go build -o /tmp/checklocks gvisor.dev/gvisor/tools/checklocks/cmd/checklocks
|
|
|
|
|
|
|
|
- name: Run checklocks vet
|
2024-06-26 15:29:53 +00:00
|
|
|
# TODO(#12625): add more packages as we add annotations
|
|
|
|
run: |-
|
|
|
|
./tool/go vet -vettool=/tmp/checklocks \
|
|
|
|
./envknob \
|
|
|
|
./ipn/store/mem \
|
|
|
|
./net/stun/stuntest \
|
|
|
|
./net/wsconn \
|
|
|
|
./proxymap
|