Skip to content
Open

WIP #230

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
169 changes: 93 additions & 76 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,88 +27,95 @@ jobs:
ping: 100.99.0.2,lax-pve.pineapplefish.ts.net,lax-pve
credential-type: oauth

# Try unstable too
- os: ubuntu-latest
runner-os: Linux
arch: amd64
version: unstable
credential-type: oauth

# Try a pinned version
- os: ubuntu-latest
# Linux tests (Older Ubuntu)
- os: ubuntu-22.04
runner-os: Linux
arch: amd64
credential-type: oauth
# leave version blank to fall back to default

# Linux tests (ARM64)
- os: ubuntu-24.04-arm
runner-os: Linux
arch: arm64
version: latest
credential-type: oauth

# Windows tests (AMD64)
- os: windows-latest
runner-os: Windows
arch: amd64
version: latest
ping: 100.99.0.2,lax-pve.pineapplefish.ts.net,lax-pve
credential-type: oauth

# Windows tests (ARM64)
- os: windows-11-arm
runner-os: Windows
arch: arm64
version: latest
credential-type: oauth

# macOS 13 (AMD64)
- os: macos-13
runner-os: macOS
arch: amd64
version: latest
ping: 100.99.0.2,lax-pve.pineapplefish.ts.net,lax-pve
credential-type: oauth

# macOS 14 (ARM)
- os: macos-14
runner-os: macOS
arch: arm64
version: latest
ping: 100.99.0.2,lax-pve.pineapplefish.ts.net,lax-pve
credential-type: oauth

# macOS latest (ARM)
- os: macos-latest
runner-os: macOS
arch: arm64
version: latest
ping: 100.99.0.2,lax-pve.pineapplefish.ts.net,lax-pve
credential-type: oauth

# Try workload identity for each platform
- os: macos-latest
runner-os: macOS
arch: amd64
version: latest
ping: 100.99.0.2,lax-pve.pineapplefish.ts.net,lax-pve
credential-type: workload-identity

- os: windows-latest
runner-os: Windows
arch: amd64
ping: 100.99.0.2,lax-pve.pineapplefish.ts.net,lax-pve
credential-type: workload-identity
# leave version blank to fall back to default

# Try adding in an unstable
- os: ubuntu-latest
runner-os: Linux
arch: amd64
version: unstable
credential-type: workload-identity

# # Try unstable too
# - os: ubuntu-latest
# runner-os: Linux
# arch: amd64
# version: unstable
# credential-type: oauth

# # Try a pinned version
# - os: ubuntu-latest
# runner-os: Linux
# arch: amd64
# credential-type: oauth
# # leave version blank to fall back to default

# # Linux tests (ARM64)
# - os: ubuntu-24.04-arm
# runner-os: Linux
# arch: arm64
# version: latest
# credential-type: oauth

# # Windows tests (AMD64)
# - os: windows-latest
# runner-os: Windows
# arch: amd64
# version: latest
# ping: 100.99.0.2,lax-pve.pineapplefish.ts.net,lax-pve
# credential-type: oauth

# # Windows tests (ARM64)
# - os: windows-11-arm
# runner-os: Windows
# arch: arm64
# version: latest
# credential-type: oauth

# # macOS 13 (AMD64)
# - os: macos-13
# runner-os: macOS
# arch: amd64
# version: latest
# ping: 100.99.0.2,lax-pve.pineapplefish.ts.net,lax-pve
# credential-type: oauth

# # macOS 14 (ARM)
# - os: macos-14
# runner-os: macOS
# arch: arm64
# version: latest
# ping: 100.99.0.2,lax-pve.pineapplefish.ts.net,lax-pve
# credential-type: oauth

# # macOS latest (ARM)
# - os: macos-latest
# runner-os: macOS
# arch: arm64
# version: latest
# ping: 100.99.0.2,lax-pve.pineapplefish.ts.net,lax-pve
# credential-type: oauth

# # Try workload identity for each platform
# - os: macos-latest
# runner-os: macOS
# arch: amd64
# version: latest
# ping: 100.99.0.2,lax-pve.pineapplefish.ts.net,lax-pve
# credential-type: workload-identity

# - os: windows-latest
# runner-os: Windows
# arch: amd64
# ping: 100.99.0.2,lax-pve.pineapplefish.ts.net,lax-pve
# credential-type: workload-identity
# # leave version blank to fall back to default

# # Try adding in an unstable
# - os: ubuntu-latest
# runner-os: Linux
# arch: amd64
# version: unstable
# credential-type: workload-identity

runs-on: ${{ matrix.os }}

Expand All @@ -128,6 +135,11 @@ jobs:
- name: Build Action
run: npm run build

- name: list resolver configuration (before)
run: ls /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf
- name: check resolver status (before)
run: resolvectl status

# Test with OAuth authentication
- name: Test Action
id: tailscale-oauth
Expand All @@ -150,6 +162,11 @@ jobs:
- name: Look up unqualified name
run: nslookup lax-pve

- name: list resolver configuration (after)
run: ls /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf
- name: check resolver status (after)
run: resolvectl status

# Test Tailscale status command
- name: Check Tailscale Status
if: steps.tailscale-oauth.outcome == 'success'
Expand Down
Loading