Skip to content

Commit 4db9273

Browse files
committed
fix: test workflow now pings the server to check connection status.
1 parent 2c2ed29 commit 4db9273

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- main
7+
- develop
78
pull_request:
89

910
jobs:
@@ -22,9 +23,9 @@ jobs:
2223
- name: Test OpenVPN
2324
uses: "./"
2425
with:
25-
config_file: ${{ secrets.VPN_CONFIG_FILE }}
26+
config_file: ${{ secrets.VPN_CONFIG }}
2627
certificate: ${{ secrets.VPN_CERTIFICATE }}
2728
certificate_name: ${{ secrets.VPN_CERTIFICATE_NAME }}
2829

2930
- name: Check if connected
30-
run: curl -v http://172.16.0.61
31+
run: ping -c 1 -W 5 172.16.0.61 >/dev/null && echo 'Successfully pinged device!'

0 commit comments

Comments
 (0)