Use VPN for testing action

This commit is contained in:
Ajay
2025-04-24 03:27:30 -04:00
parent a45690b26e
commit 74433fe751

View File

@@ -5,7 +5,7 @@ on: [push, pull_request]
jobs: jobs:
test: test:
name: Run tests name: Run tests
runs-on: self-hosted runs-on: ubuntu-latest
steps: steps:
# Initialization # Initialization
@@ -20,6 +20,16 @@ jobs:
- name: Copy configuration - name: Copy configuration
run: cp config.json.example config.json run: cp config.json.example config.json
- name: Set up WireGuard
uses: egor-tensin/setup-wireguard@3c76633378032377324ed3e9e84873fe40267a25
with:
endpoint: '${{ secrets.ENDPOINT }}'
endpoint_public_key: '${{ secrets.ENDPOINT_PUBLIC }}'
ips: '${{ secrets.IPS }}'
allowed_ips: '${{ secrets.ALLOWED_IPS }}'
private_key: '${{ secrets.PRIVATE }}'
- name: Run tests - name: Run tests
run: npm run test run: npm run test