-
Notifications
You must be signed in to change notification settings - Fork 2
31 lines (31 loc) · 900 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
name: CI
on:
workflow_dispatch:
schedule:
- cron: "0 13 * * 5" # Every Friday at 13:00 UTC
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install modules
run: npm install
- name: Install OpenVPN
run: |
curl ${{ secrets.OVPN_URL }} --output config.ovpn --silent
sudo apt update
sudo apt install -y openvpn openvpn-systemd-resolved
- name: Connect to VPN
uses: "kota65535/github-openvpn-connect-action@v2"
with:
config_file: config.ovpn
username: ${{ secrets.OVPN_USERNAME }}
password: ${{ secrets.OVPN_PASSWORD }}
- name: Run tests
run: npm run test-ci
# Give time for the logs to be uploaded; we don't want the VPN
# to die before they are!
- name: Sleep for 20 seconds
uses: whatnick/wait-action@master
with:
time: '20s'