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
|
2023-10-30 11:47:06 +00:00
|
|
|
uses: actions/checkout@v4
|
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
|
|
|
|
# TODO: remove || true once we have applied checklocks annotations everywhere.
|
|
|
|
run: ./tool/go vet -vettool=/tmp/checklocks ./... || true
|