diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2022-11-28 13:56:22 +0100 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2022-11-28 13:58:47 +0100 |
commit | ee9cc39f9b6e65eea2037b8938de8cb5c73e677d (patch) | |
tree | ec94ade033efa56ec04706797fe06a37833220c7 /.github/workflows | |
parent | docker: use wg0 by default (diff) | |
download | wg-api-web-ee9cc39f9b6e65eea2037b8938de8cb5c73e677d.tar.gz wg-api-web-ee9cc39f9b6e65eea2037b8938de8cb5c73e677d.zip |
add test/ with a basic CI script
Diffstat (limited to '')
-rw-r--r-- | .github/workflows/ci.yml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f3b46fe..f39c07f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,7 +6,19 @@ on: workflow_dispatch: jobs: + test: + runs-on: ubuntu-latest + name: Test + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Install dependencies + run: sudo apt install -y wireguard-tools + - name: Test + run: sudo ./test/test.sh + publish_docker: + needs: [test] runs-on: ubuntu-latest name: 'Publish / Docker Hub' if: github.event_name == 'push' && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/')) |