mirror of
https://github.com/tailscale/tailscale.git
synced 2026-02-12 08:51:51 -05:00
Updates tailscale/go#150 Updates tailscale/corp#28679 Change-Id: Ieb4780f157451f5c6660c96c6efaec9ddcfcb415 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
40 lines
977 B
YAML
40 lines
977 B
YAML
name: tailscale.com/cmd/vet
|
|
|
|
env:
|
|
HOME: ${{ github.workspace }}
|
|
# GOMODCACHE is the same definition on all OSes. Within the workspace, we use
|
|
# toplevel directories "src" (for the checked out source code), and "gomodcache"
|
|
# and other caches as siblings to follow.
|
|
GOMODCACHE: ${{ github.workspace }}/gomodcache
|
|
CMD_GO_USE_GIT_HASH: "true"
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- "release-branch/*"
|
|
paths:
|
|
- "**.go"
|
|
pull_request:
|
|
paths:
|
|
- "**.go"
|
|
|
|
jobs:
|
|
vet:
|
|
runs-on: [ self-hosted, linux ]
|
|
timeout-minutes: 5
|
|
|
|
steps:
|
|
- name: Check out code
|
|
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
|
with:
|
|
path: src
|
|
|
|
- name: Build 'go vet' tool
|
|
working-directory: src
|
|
run: ./tool/go build -o /tmp/vettool tailscale.com/cmd/vet
|
|
|
|
- name: Run 'go vet'
|
|
working-directory: src
|
|
run: ./tool/go vet -vettool=/tmp/vettool tailscale.com/...
|