Bump guibranco/github-file-reader-action-v2 from 2.2.711 to 2.2.715 #52
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |