diff --git a/.github/workflows/basic.yml b/.github/workflows/basic.yml index 7655519..d7827b5 100644 --- a/.github/workflows/basic.yml +++ b/.github/workflows/basic.yml @@ -11,23 +11,27 @@ 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 @@ -35,7 +39,6 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v4 - - name: Set up Node.js 20 uses: actions/setup-node@v4 with: @@ -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 diff --git a/h.md b/h.md new file mode 100644 index 0000000..7737dde --- /dev/null +++ b/h.md @@ -0,0 +1 @@ +h.