mirror of
https://github.com/tailscale/tailscale.git
synced 2026-12-01 22:22:34 -08:00
Add a workflow that checks out tailscale/tailcat alongside this repo and runs its tests in a go.work workspace where tailscale.com resolves to the tailscale.com repo at head instead of tailcat's pinned version. This gives us an early warning when a change here breaks tailcat's API or behavior expectations. Such a failure might be fine if the change is intentional and coordinated with a tailcat fix, but the goal is to catch accidents. Updates tailscale/corp#24454 Signed-off-by: Brad Fitzpatrick <[email protected]> Change-Id: I0566437ee86bd0403c708b2f44e7ef169abf2570
48 lines
1.3 KiB
YAML
48 lines
1.3 KiB
YAML
name: tailcat
|
|
|
|
# This workflow tests the tailscale/tailcat repo against the tailscale.com
|
|
# module at head, rather than the version tailcat pins in its go.mod. It
|
|
# exists as an early warning that a change here breaks tailcat's API or
|
|
# behavior expectations. A failure might be fine if it's an intentional,
|
|
# coordinated change, but it's here to prevent accidental breakage.
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
paths:
|
|
- "**/*.go"
|
|
- "go.mod"
|
|
- "go.sum"
|
|
- ".github/workflows/tailcat.yml"
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
tailcat:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out tailscale
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
with:
|
|
path: tailscale
|
|
|
|
- name: Check out tailcat
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
with:
|
|
repository: tailscale/tailcat
|
|
path: tailcat
|
|
|
|
- name: Set up Go workspace
|
|
working-directory: tailcat
|
|
run: |
|
|
../tailscale/tool/go work init . ../tailscale
|
|
../tailscale/tool/go work sync
|
|
|
|
- name: Run tailcat tests
|
|
working-directory: tailcat
|
|
run: ../tailscale/tool/go test ./...
|