Skip to content

MAIN-T-92 Add Qodana to pipeline #16

MAIN-T-92 Add Qodana to pipeline

MAIN-T-92 Add Qodana to pipeline #16

Workflow file for this run

name: tests
on:
pull_request:
branches: [ "main" ]
defaults:
run:
working-directory: ./server
jobs:
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