mirror of
https://github.com/juanfont/headscale.git
synced 2026-09-30 03:49:36 +09:00
37 lines
1007 B
YAML
37 lines
1007 B
YAML
name: Server Tests
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-$${{ github.head_ref || github.run_id }}
|
|
cancel-in-progress: true
|
|
|
|
# hscontrol/servertest is excluded from the sandboxed gotest flake check: it is
|
|
# slow (10s+ convergence cases) and timing-sensitive (race/stress/HA property
|
|
# tests), so it runs here in the devShell with a generous timeout instead.
|
|
defaults:
|
|
run:
|
|
shell: nix develop --fallback --command bash -e {0}
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
servertest:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
- uses: NixOS/nix-installer-action@62c1943b776c509394b550f3f983adc14e9212d6 # main
|
|
- uses: Mic92/hestia@dfed9ced335d28978ba74e513939a10db1f71025 # v3.1.0
|
|
|
|
- name: go test ./hscontrol/servertest
|
|
env:
|
|
CGO_ENABLED: "0"
|
|
run: go test -timeout=20m ./hscontrol/servertest/...
|