mirror of
https://github.com/juanfont/headscale.git
synced 2024-12-28 07:05:51 -05:00
53858a32f1
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
36 lines
979 B
YAML
36 lines
979 B
YAML
name: Integration Test v2 - kradalby
|
|
|
|
on: [pull_request]
|
|
|
|
jobs:
|
|
integration-test-v2-kradalby:
|
|
runs-on: [self-hosted, linux, x64, nixos, docker]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 2
|
|
|
|
- name: Get changed files
|
|
id: changed-files
|
|
uses: tj-actions/changed-files@v34
|
|
with:
|
|
files: |
|
|
*.nix
|
|
go.*
|
|
**/*.go
|
|
integration_test/
|
|
config-example.yaml
|
|
|
|
# We currently only run one job at the time, so make sure
|
|
# we just wipe all containers and all networks.
|
|
- name: Clean up Docker
|
|
if: steps.changed-files.outputs.any_changed == 'true'
|
|
run: |
|
|
docker kill $(docker ps -q) || true
|
|
docker network prune -f || true
|
|
|
|
- name: Run general integration tests
|
|
if: steps.changed-files.outputs.any_changed == 'true'
|
|
run: nix develop --command -- make test_integration_v2_general
|