Skip to content

Commit 9e3d6bf

Browse files
committed
chore: Change test workflow and upload logs at the end of the test
1 parent a796c9f commit 9e3d6bf

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/test.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,13 @@ jobs:
2727
certificate: ${{ secrets.VPN_CERTIFICATE }}
2828
certificate_name: ${{ secrets.VPN_CERTIFICATE_NAME }}
2929

30-
- name: Check if connected
31-
run: ping -c 1 -W 5 172.16.0.61 >/dev/null && echo 'Successfully pinged device!'
30+
- name: Wait for VPN to connect
31+
if: success()
32+
run: until ping -c 1 -W 5 172.16.0.61; sleep 2; done
33+
34+
- name: Upload VPN logs
35+
if: always()
36+
uses: actions/upload-artifact@v2
37+
with:
38+
name: vpn-logs
39+
path: openvpn.log

0 commit comments

Comments
 (0)