c_simple_http/.forgejo/workflows/unittest.yml
Stephen Seo 30e0753ba8
All checks were successful
Run Unit Tests / build-and-run-unit-tests (push) Successful in 7s
CI: Run unit tests on Release build as well
2024-09-11 13:20:21 +09:00

25 lines
830 B
YAML

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
- name: Build Release build
run: make -C c_simple_http clean && make RELEASE=1 -C c_simple_http
- name: Run unit tests on Release build
run: ./c_simple_http/unit_test