mirror of
https://github.com/tailscale/tailscale.git
synced 2024-12-01 14:05:39 +00:00
0323dd01b2
This turns the checklocks workflow into a real check, and adds annotations to a few basic packages as a starting point. Updates #12625 Signed-off-by: Andrew Dunham <andrew@du.nham.ca> Change-Id: I2b0185bae05a843b5257980fc6bde732b1bdd93f
35 lines
839 B
YAML
35 lines
839 B
YAML
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
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Build checklocks
|
|
run: ./tool/go build -o /tmp/checklocks gvisor.dev/gvisor/tools/checklocks/cmd/checklocks
|
|
|
|
- name: Run checklocks vet
|
|
# 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
|