Skip to content

Bump guibranco/github-file-reader-action-v2 from 2.2.711 to 2.2.715 #52

Bump guibranco/github-file-reader-action-v2 from 2.2.711 to 2.2.715

Bump guibranco/github-file-reader-action-v2 from 2.2.711 to 2.2.715 #52

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