From 0150af87dca49947bd4506dac379eafa3de78ed9 Mon Sep 17 00:00:00 2001 From: Chai Feng Date: Mon, 13 Sep 2021 13:46:10 +0800 Subject: [PATCH] Add Github Actions to run unit tests --- .github/workflows/testing.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/testing.yml diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml new file mode 100644 index 0000000..5d9119e --- /dev/null +++ b/.github/workflows/testing.yml @@ -0,0 +1,16 @@ +name: Unit Testing ufw-docker +on: [push, pull_request] +jobs: + test: + name: Unit Testing + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Checkout submodules + shell: bash + run: | + auth_header="$(git config --local --get http.https://github.com/.extraheader)" + git submodule sync --recursive + git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1 + - name: Test ufw-docker + run: ./test.sh