diff options
| author | James Tucker <james@tailscale.com> | 2023-08-31 13:11:58 -0700 |
|---|---|---|
| committer | James Tucker <jftucker@gmail.com> | 2023-10-25 16:39:31 -0700 |
| commit | 237b4b5a2ac3ea1b5dd6742808a00a421f77f236 (patch) | |
| tree | f4ec9c9921778718bf81a729a3dfde682007f732 | |
| parent | 131518eed1c764cce2f5369aad9e2235a9d0c5e9 (diff) | |
| download | tailscale-237b4b5a2ac3ea1b5dd6742808a00a421f77f236.tar.xz tailscale-237b4b5a2ac3ea1b5dd6742808a00a421f77f236.zip | |
.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>
| -rw-r--r-- | .github/workflows/checklocks.yml | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/.github/workflows/checklocks.yml b/.github/workflows/checklocks.yml new file mode 100644 index 000000000..7cc1cdec9 --- /dev/null +++ b/.github/workflows/checklocks.yml @@ -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 |
