Skip to content

Commit

Permalink
MAIN-T-98 Create a job to run indexing (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
hanna-eismant authored Apr 9, 2024
1 parent 3a1eea9 commit c6db640
Show file tree
Hide file tree
Showing 22 changed files with 15,313 additions and 11,854 deletions.
104 changes: 104 additions & 0 deletions .github/workflows/gradle-main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
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
File renamed without changes.
2 changes: 2 additions & 0 deletions server/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ dependencies {
implementation 'com.azure:azure-storage-blob:12.25.2'
implementation 'org.apache.solr:solr-solrj:9.5.0'

// testImplementation 'org.awaitility:awaitility:4.2.0'

implementation 'net.logstash.logback:logstash-logback-encoder:7.4'

runtimeOnly 'org.springframework.boot:spring-boot-devtools'
Expand Down
Loading

0 comments on commit c6db640

Please sign in to comment.