diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..e544b59 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,25 @@ +name: Tests +on: + push: + branches: + - main + pull_request: + branches: + - main +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Setup CMake + uses: jwlawson/actions-setup-cmake@v1.14 + - name: Setup Ninja + uses: seanmiddleditch/gha-setup-ninja@master + - name: Configure and build + run: | + cmake -G Ninja -B build + cd build + ninja + - name: Run tests + run: ./build/runtests diff --git a/README.md b/README.md index c3a10e5..128940f 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # Overview +![Tests](https://github.com/jorenchik/testing-spring-2024/actions/workflows/tests.yml/badge.svg) + ## Project This is a simple C++ project that includes the function for our colleagues to