-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MAIN-T-98 Create a job to run indexing (#80)
- Loading branch information
1 parent
3a1eea9
commit c6db640
Showing
22 changed files
with
15,313 additions
and
11,854 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.