-
Notifications
You must be signed in to change notification settings - Fork 57
40 lines (36 loc) · 958 Bytes
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Test
on:
push:
branches:
- main
paths-ignore:
- README.md
pull_request:
jobs:
show-context:
runs-on: ubuntu-latest
steps:
- name: Show github context object
run: echo $JSON
env:
JSON: ${{ toJSON(github) }}
test:
runs-on: ubuntu-latest
name: Typical Usage of OpenVPN
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install OpenVPN
run: |
sudo apt update
sudo apt install -y openvpn openvpn-systemd-resolved
- name: Connect to VPN
uses: "./"
with:
config_file: .github/workflows/client.ovpn
username: ${{ secrets.OVPN_USERNAME }}
password: ${{ secrets.OVPN_PASSWORD }}
client_key: ${{ secrets.OVPN_CLIENT_KEY }}
tls_auth_key: ${{ secrets.OVPN_TLS_AUTH_KEY }}
- name: Check if connected
run: curl -v http://172.20.4.173:8080