Skip to content

Commit

Permalink
Merge pull request #14 from PascalHonegger/latest-and-greatest
Browse files Browse the repository at this point in the history
Latest and greatest versions
  • Loading branch information
PascalHonegger authored Nov 18, 2023
2 parents c734f5f + c16ae7d commit 8c6ea53
Show file tree
Hide file tree
Showing 120 changed files with 3,700 additions and 14,419 deletions.
22 changes: 2 additions & 20 deletions .github/workflows/backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,30 +18,12 @@ jobs:
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 19
java-version: 21
cache: gradle
- name: Verify
run: ./gradlew --no-daemon check koverMergedHtmlReport koverMergedVerify
run: ./gradlew --no-daemon check koverHtmlReport koverVerify
- name: Archive code coverage results
uses: actions/upload-artifact@v3
with:
name: code-coverage-report
path: build/reports/kover/html/

qodana-jvm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 19
cache: gradle
- name: Build
run: ./gradlew --no-daemon assemble
- name: 'Qodana JVM Scan'
uses: JetBrains/[email protected]
with:
args: '--linter,jetbrains/qodana-jvm'
artifact-name: 'qodana-jvm-report'
cache-dir: ${{ runner.temp }}/qodana-jvm/caches
31 changes: 8 additions & 23 deletions .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,30 +15,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: pnpm/action-setup@v2
with:
node-version: 18
cache: npm
cache-dependency-path: Frontend/package-lock.json
- run: npm ci
working-directory: Frontend
- run: npm run lint
working-directory: Frontend

qodana-js:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
package_json_file: Frontend/package.json
- uses: actions/setup-node@v3
with:
node-version: 18
cache: npm
cache-dependency-path: Frontend/package-lock.json
- run: npm ci
node-version: 20
cache: pnpm
cache-dependency-path: Frontend/pnpm-lock.yaml
- run: pnpm i
working-directory: Frontend
- run: pnpm lint
working-directory: Frontend
- name: 'Qodana JS Scan'
uses: JetBrains/[email protected]
with:
args: '-i,Frontend,--linter,jetbrains/qodana-js'
artifact-name: 'qodana-js-report'
cache-dir: ${{ runner.temp }}/qodana-js/caches
2 changes: 1 addition & 1 deletion .github/workflows/gradle-dependency-submission.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 19
java-version: 21
cache: gradle

- name: Run snapshot action
Expand Down
23 changes: 13 additions & 10 deletions .github/workflows/operations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,25 +18,28 @@ jobs:
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 19
java-version: 21
cache: gradle
- uses: pnpm/action-setup@v2
with:
package_json_file: Frontend/package.json
- uses: actions/setup-node@v3
with:
node-version: 18
cache: npm
cache-dependency-path: Frontend/package-lock.json
- run: npm ci
node-version: 20
cache: pnpm
cache-dependency-path: Frontend/pnpm-lock.yaml
- run: pnpm i
working-directory: Frontend
- name: Build Frontend
run: npm run build
run: pnpm build
working-directory: Frontend
- name: Build Backend
run: ./gradlew --no-daemon shadowJar

- name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
Expand All @@ -45,7 +48,7 @@ jobs:
password: ${{ github.token }}
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
images: |
ghcr.io/pascalhonegger/jasstracker
Expand All @@ -55,7 +58,7 @@ jobs:
type=semver,pattern={{major}}
type=ref,event=pr
- name: Build and push container images
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
file: DockerfileBuiltLocally
context: .
Expand Down
2 changes: 1 addition & 1 deletion .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/kotlinc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/runConfigurations/Postgres_Dev.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion Backend/bootstrap/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
@Suppress("DSL_SCOPE_VIOLATION") // see https://youtrack.jetbrains.com/issue/KTIJ-19369
plugins {
application
alias(libs.plugins.kotlin.jvm)
alias(libs.plugins.shadow)
alias(libs.plugins.kover)
}

application {
Expand All @@ -12,6 +12,10 @@ application {
applicationDefaultJvmArgs = listOf("-Dio.ktor.development=$isDevelopment")
}

kotlin {
jvmToolchain(20)
}

dependencies {
implementation(project(":Backend:data-access"))
implementation(project(":Backend:domain"))
Expand All @@ -31,6 +35,7 @@ dependencies {
implementation(libs.kotlinx.datetime)
implementation(libs.logback)
implementation(libs.kotlin.logging)
implementation(libs.slf4j)
implementation(libs.java.jwt)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import io.ktor.server.plugins.contentnegotiation.*
import io.ktor.server.plugins.cors.routing.*
import io.ktor.server.plugins.statuspages.*
import io.ktor.server.request.*
import mu.KotlinLogging
import io.github.oshai.kotlinlogging.KotlinLogging

fun Application.configureHTTP() {
val log = KotlinLogging.logger { }
Expand Down
2 changes: 1 addition & 1 deletion Backend/bootstrap/src/main/resources/application.conf
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jwt {
audience = ${?JWT_AUDIENCE}
realm = "JassTracker"
realm = ${?JWT_REALM}
expiryTime = 2h
expiryTime = 4h
expiryTime = ${?JWT_EXPIRY_TIME}
}

Expand Down
6 changes: 5 additions & 1 deletion Backend/data-access/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
import org.jooq.meta.jaxb.ForcedType

@Suppress("DSL_SCOPE_VIOLATION") // see https://youtrack.jetbrains.com/issue/KTIJ-19369
plugins {
java
alias(libs.plugins.kotlin.jvm)
alias(libs.plugins.jooq)
alias(libs.plugins.kover)
}

kotlin {
jvmToolchain(20)
}

dependencies {
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 8c6ea53

Please sign in to comment.