Skip to content

Create infisical-secrets-check.yml #20

Create infisical-secrets-check.yml

Create infisical-secrets-check.yml #20

Workflow file for this run

name: Test VPN
on:
pull_request:
workflow_dispatch:
jobs:
test-vpn:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: cURL without VPN
run: |
curl -A "POC-GHActions-CI-Wireguard-VPN" ${{ secrets.WEBHOOK_ENDPOINT }}?type=without-vpn-1
- name: Attach WireGuard connection
shell: bash
run: |
sudo apt install resolvconf
sudo apt install wireguard
echo "${{ secrets.WIREGUARD_CONFIG }}" > wg0.conf
sudo chmod 600 wg0.conf
sudo wg-quick up ./wg0.conf
- name: cURL without VPN
run: |
curl -A "POC-GHActions-CI-Wireguard-VPN" ${{ secrets.WEBHOOK_ENDPOINT }}?type=with-vpn-1
- name: Detach WireGuard connection
shell: bash
run: sudo wg-quick down ./wg0.conf
- name: cURL without VPN
run: |
curl -A "POC-GHActions-CI-Wireguard-VPN" ${{ secrets.WEBHOOK_ENDPOINT }}?type=without-vpn-2