From: Stephen Seo Date: Wed, 4 Sep 2024 08:51:07 +0000 (+0900) Subject: Add action/workflow to run unit tests X-Git-Tag: 1.0~83 X-Git-Url: https://git.seodisparate.com/stephenseo/js/darkmode.js?a=commitdiff_plain;h=8e799ef34a26da25322a2c5ba8cfc49185bdf8d3;p=c_simple_http Add action/workflow to run unit tests --- diff --git a/.forgejo/workflows/unittest.yml b/.forgejo/workflows/unittest.yml new file mode 100644 index 0000000..599cfb6 --- /dev/null +++ b/.forgejo/workflows/unittest.yml @@ -0,0 +1,20 @@ +name: Run Unit Tests +on: + push: + branches: + - '*' + +jobs: + build-and-run-unit-tests: + runs-on: any_archLinux + steps: + - name: Get repo + run: git clone --depth=1 --no-single-branch https://git.seodisparate.com/stephenseo/c_simple_http.git c_simple_http + - name: Checkout the branch + run: cd c_simple_http && git checkout "${GITHUB_REF_NAME}" + - name: Get submodules + run: cd c_simple_http && git submodule update --init --recursive --depth=1 --no-single-branch + - name: Build + run: make -C c_simple_http + - name: Run unit tests + run: ./c_simple_http/unit_test