Skip to content
Merged
23 changes: 13 additions & 10 deletions .github/workflows/basic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,31 +11,34 @@ jobs:
server-quality:
name: Server - Basic CI
runs-on: ubuntu-latest
services:
mysql:
image: mysql:8
env:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: goeventsnow_db
ports:
- 3306:3306
options: --health-cmd="mysqladmin ping --silent" --health-interval=10s --health-timeout=5s --health-retries=5
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
- name: Compile Server
run: |
cd backend
mvn clean compile
- name: Run backend unitary tests
- name: Compile Server & Run Backend Unit Test
run: |
cd backend
mvn -Dtest=es.goeventsnow.backend.unit.EventTest test
mvn clean verify -Dtest="es.goeventsnow.backend.unit.EventTest"

client-quality:
name: Client - Basic CI
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Node.js 20
uses: actions/setup-node@v4
with:
Expand All @@ -49,8 +52,8 @@ jobs:
- name: Build project
run: |
cd frontend
ng build
npx ng build --configuration=production
- name: Run frontend unitary tests
run: |
cd frontend
ng test --no-watch --browsers=ChromeHeadless --include=src/app/app.component.spec.ts
npx ng test --include=src/app/app.component.spec.ts --coverage
1 change: 1 addition & 0 deletions h.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h.