Merge pull request #2 from reload/npm-dependabot #41
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: | |
- push | |
- workflow_dispatch | |
jobs: | |
test-vpn: | |
name: Test VPN connection | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./ | |
with: | |
server: ${{ vars.RELOAD_HQ_IP }} | |
psk: ${{ secrets.RELOAD_VPN_PSK }} | |
username: ${{ vars.RELOAD_VPN_USERNAME }} | |
password: ${{ secrets.RELOAD_VPN_PASSWORD }} | |
route: 104.18.0.0/15 | |
- name: Test VPN connection | |
run: | | |
[ "$(curl --silent https://canhazip.com)" == "${{ vars.RELOAD_HQ_IP }}" ] || exit 1 |