Skip to content

MAIN-T-102 Create endpoint to search Documents (#91) #14

MAIN-T-102 Create endpoint to search Documents (#91)

MAIN-T-102 Create endpoint to search Documents (#91) #14

Workflow file for this run

name: tests
on:
push:
branches: [ "main" ]
# pull_request:
# branches: [ "main" ]
defaults:
run:
working-directory: ./server
jobs:
# qodana:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - name: Set up JDK 17
# uses: actions/setup-java@v4
# with:
# java-version: '17'
# distribution: 'temurin'
# args: --project-dir,server,--baseline,qodana.sarif.json
# - name: 'Qodana Scan'
# uses: JetBrains/[email protected]
# env:
# QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
unit:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5 # v3.1.0
- name: Run tests with Gradle Wrapper
run: ./gradlew koverVerify
integration:
runs-on: ubuntu-latest
permissions:
contents: read
services:
mysql:
image: mysql:8.0
ports:
- 3306:3306
env:
MYSQL_DATABASE: doky-test
MYSQL_ROOT_PASSWORD: doky-test
MYSQL_USER: doky-test
MYSQL_PASSWORD: doky-test
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
env:
DB_HOST: 127.0.0.1
DB_PORT: 3306
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5 # v3.1.0
- name: Run tests with Gradle Wrapper
run: ./gradlew integrationTest -PrunIntegrationTests=true
api:
runs-on: ubuntu-latest
permissions:
contents: read
services:
mysql:
image: mysql:8.0
ports:
- 3306:3306
env:
MYSQL_DATABASE: doky-test
MYSQL_ROOT_PASSWORD: doky-test
MYSQL_USER: doky-test
MYSQL_PASSWORD: doky-test
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
env:
DB_HOST: 127.0.0.1
DB_PORT: 3306
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5 # v3.1.0
- name: Run tests with Gradle Wrapper
run: ./gradlew apiTest -PrunApiTests=true