From 2591126c3f4cbebb263c0735b4ff21d6656c7277 Mon Sep 17 00:00:00 2001 From: cloudxdam Date: Tue, 6 Oct 2026 13:35:42 +0100 Subject: [PATCH 1/2] ci: run tests on every pull request --- .github/workflows/ci.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..9ded242 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,25 @@ +name: CI + +on: + push: + branches: [develop, main] + pull_request: + branches: [develop, main] + +permissions: + contents: read + +jobs: + test: + runs-on: ubuntu-latest + env: + JWT_SECRET: ci-only-secret-not-for-production-use-0123456789 + steps: + - uses: actions/checkout@v7 + - uses: actions/setup-java@v5 + with: + distribution: temurin + java-version: '17' + cache: maven + - name: Run tests + run: ./mvnw -B test \ No newline at end of file From ed6f5de9e4fa2efec79fa36788e4aa30eb820087 Mon Sep 17 00:00:00 2001 From: cloudxdam Date: Tue, 6 Oct 2026 16:28:48 +0100 Subject: [PATCH 2/2] docs: add ci status badge --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 9b03df4..b916796 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # RestoReserve API +[![CI](https://github.com/cloudxdam/restoreserve-api/actions/workflows/ci.yml/badge.svg?branch=develop)](https://github.com/cloudxdam/restoreserve-api/actions/workflows/ci.yml) + RestoReserve API is a Spring Boot REST API for managing restaurant tables, reservations, and user access with JWT authentication. The project started as an academic project and is being refined with a focus on backend fundamentals: layered architecture, validation, security, persistence, testing, and business rules.