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 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.