aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.github/workflows/test.yml
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-08-07 21:21:15 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-08-07 22:39:08 +0300
commit6d8ae087cf2317a696f8d5685de7dd68c389313e (patch)
tree1e4971ddc51eba176684cfb5a5d93de794250e8b /.github/workflows/test.yml
parentinitial commit (diff)
downloadsetup-wireguard-6d8ae087cf2317a696f8d5685de7dd68c389313e.tar.gz
setup-wireguard-6d8ae087cf2317a696f8d5685de7dd68c389313e.zip
add the actual action code
Diffstat (limited to '.github/workflows/test.yml')
-rw-r--r--.github/workflows/test.yml34
1 files changed, 34 insertions, 0 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
new file mode 100644
index 0000000..7b046e9
--- /dev/null
+++ b/.github/workflows/test.yml
@@ -0,0 +1,34 @@
+name: Test
+
+on:
+ push:
+ pull_request:
+ schedule:
+ # Weekly, at 5:45 AM on Friday (somewhat randomly chosen).
+ - cron: '45 5 * * 5'
+ workflow_dispatch:
+
+jobs:
+ test:
+ strategy:
+ matrix:
+ os: [ubuntu-18.04, ubuntu-20.04, ubuntu-latest]
+ runs-on: '${{ matrix.os }}'
+ name: 'Test: ${{ matrix.os }}'
+ defaults:
+ run:
+ shell: bash
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v2
+ - name: Set up WireGuard
+ uses: ./
+ with:
+ endpoint: '${{ secrets.ENDPOINT }}'
+ endpoint_public_key: '${{ secrets.ENDPOINT_PUBLIC }}'
+ ips: '${{ secrets.IPS }}'
+ private_key: '${{ secrets.PRIVATE }}'
+ preshared_key: '${{ secrets.PRESHARED }}'
+ allowed_ips: '${{ secrets.ALLOWED_IPS }}'
+ - name: Check endpoint
+ run: ping -W 10 -c 5 -- '${{ secrets.ENDPOINT_PRIVATE_IP }}'