Skip to content

Commit

Permalink
ci: disable live tsnet test
Browse files Browse the repository at this point in the history
  • Loading branch information
jnsgruk committed Jan 27, 2025
1 parent 8eb5be5 commit 631e3ba
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,16 @@ name: Test

on:
push:
branches: [ main ]
branches: [main]
pull_request:
branches: [ main ]
branches: [main]

jobs:
test-tsnet:
name: Test (tsnet)
# Disable this test for now. It doesn't run on PRs anyway due to not having access to
# the secrets.
if: false
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -24,7 +27,7 @@ jobs:
uses: actions/setup-go@v5
with:
go-version-file: "go.mod"

- name: Tailscale
uses: tailscale/github-action@v3
with:
Expand All @@ -35,15 +38,15 @@ jobs:
- name: Build Libations
run: |
nix build .#libations
- name: Run Libations
env:
TS_API_CLIENT_ID: ${{ secrets.TS_OAUTH_CLIENT_ID }}
TS_API_CLIENT_SECRET: ${{ secrets.TS_OAUTH_SECRET }}
run: |
# Issue a new tailscale authkey for libations
export TS_AUTHKEY="$(go run tailscale.com/cmd/get-authkey@main -tags tag:libations-ci -ephemeral -preauth 2>/dev/null)"
# Start Libations in the background
./result/bin/libations -hostname "libations-$HOSTNAME" &>~/libations.log &
Expand All @@ -54,7 +57,7 @@ jobs:
- name: Dump Libations logs
run: |
cat ~/libations.log
- name: Remove libations from tsnet
env:
TS_CLIENT: ${{ secrets.TS_OAUTH_CLIENT_ID }}
Expand Down Expand Up @@ -86,7 +89,7 @@ jobs:
- name: Build Libations
run: |
nix build .#libations
- name: Run Libations
run: |
# Start Libations in the background
Expand Down

0 comments on commit 631e3ba

Please sign in to comment.