Skip to content

Migrate to Ktor v3 #1573

Migrate to Ktor v3

Migrate to Ktor v3 #1573

Workflow file for this run

name: tests
on:
push:
branches:
- main
- master
pull_request:
types:
- opened
- synchronize
- reopened
jobs:
gradle-test:
name: "Run tests on JVM with gradle"
runs-on: ubuntu-latest
services:
db:
image: postgres:17.0
ports:
- 5432:5432
env:
POSTGRES_DB: aisu_test
POSTGRES_USER: aisu
POSTGRES_PASSWORD: 4ab4008b362142c391cc9e1ab98addc6b25f00f5
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
redis:
image: redis:7.4.1
ports:
- 6379:6379
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '21'
cache: 'gradle'
- run: ./gradlew build -x test --no-daemon
- run: ./gradlew migrateTestingDatabase --no-daemon
- run: ./gradlew test --no-daemon