mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-29 04:55:31 +00:00
.github/workflows: add checklocks
Currently the checklocks step is not configured to fail, as we do not yet have the appropriate annotations. Updates tailscale/corp#14381 Signed-off-by: James Tucker <james@tailscale.com>
This commit is contained in:
parent
131518eed1
commit
237b4b5a2a
28
.github/workflows/checklocks.yml
vendored
Normal file
28
.github/workflows/checklocks.yml
vendored
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
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@v3
|
||||||
|
|
||||||
|
- name: Build checklocks
|
||||||
|
run: ./tool/go build -o /tmp/checklocks gvisor.dev/gvisor/tools/checklocks/cmd/checklocks
|
||||||
|
|
||||||
|
- name: Run checklocks vet
|
||||||
|
# TODO: remove || true once we have applied checklocks annotations everywhere.
|
||||||
|
run: ./tool/go vet -vettool=/tmp/checklocks ./... || true
|
Loading…
Reference in New Issue
Block a user