From f2c95b473a457cb00ea92e86dc537b2b14ad4e00 Mon Sep 17 00:00:00 2001 From: Juan Font Alonso Date: Sun, 9 May 2021 19:26:12 +0200 Subject: [PATCH] WIP (should fail though) --- .github/workflows/ci.yml | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d96e6483..e5ebdf93 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -103,6 +103,24 @@ jobs: echo "DB_USER=foo" >> $GITHUB_ENV echo "DB_PASS=bar" >> $GITHUB_ENV - - name: Create namespace + - name: Launch headscale run: | - ./headscale namespace create test1 -o json-line \ No newline at end of file + ./headscale serve & + + - name: Create namespace + run: | + ./headscale namespace create test1 -o json-line + + - name: Create AuthKey + run: | + echo "AUTHKEY=`./headscale -n test1 preauthkey create -o json-line | jq -r '.Key'`" >> $GITHUB_ENV + + - name: Register tailscale node + run: | + sudo tailscale up -login-server http://127.0.0.1:8000 -authkey $AUTHKEY + + + - NAME: Check if headscale reports the node + ./headscale -n test1 node list -o json-line | test $(jq length) -eq 5 + + \ No newline at end of file