From fb68e74dabd48a57a7c3c0506035ace05a8dbb97 Mon Sep 17 00:00:00 2001 From: Kristoffer Dalby <kristoffer@tailscale.com> Date: Mon, 9 Dec 2024 12:41:13 +0100 Subject: [PATCH] run tailscale part conditionally, what happens if we create libmod Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com> --- .github/workflows/test-integration.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/test-integration.yaml b/.github/workflows/test-integration.yaml index 39b977a4c94..3d28d066dc8 100644 --- a/.github/workflows/test-integration.yaml +++ b/.github/workflows/test-integration.yaml @@ -71,6 +71,8 @@ jobs: # - TestSSHUserOnlyIsolation # database: [postgres, sqlite] database: [sqlite] + env: + HAS_TAILSCALE_SECRET: ${{ secrets.TS_OAUTH_CLIENT_ID }} steps: - uses: actions/checkout@v4 with: @@ -87,12 +89,14 @@ jobs: - 'integration_test/' - 'config-example.yaml' - name: Tailscale + if: ${{ env.HAS_TAILSCALE_SECRET }} uses: tailscale/github-action@v2 with: oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }} oauth-secret: ${{ secrets.TS_OAUTH_SECRET }} tags: tag:gh - name: Setup SSH server for Actor + if: ${{ env.HAS_TAILSCALE_SECRET }} uses: alexellis/setup-sshd-actor@master - uses: DeterminateSystems/nix-installer-action@main if: steps.changed-files.outputs.files == 'true' @@ -101,6 +105,9 @@ jobs: - uses: satackey/action-docker-layer-caching@main if: steps.changed-files.outputs.files == 'true' continue-on-error: true + - name: ensure /lib/modules + if: steps.changed-files.outputs.files == 'true' + run: sudo mkdir -p /lib/modules - name: Run Integration Test uses: Wandalen/wretry.action@master if: steps.changed-files.outputs.files == 'true' @@ -134,4 +141,5 @@ jobs: name: ${{ matrix.test }}-${{matrix.database}}-pprof path: "control_logs/*.pprof.tar" - name: Setup a blocking tmux session + if: ${{ env.HAS_TAILSCALE_SECRET }} uses: alexellis/block-with-tmux-action@master