Skip to content

Add cache to reduce pressure on SQL database on high load #1932

Add cache to reduce pressure on SQL database on high load

Add cache to reduce pressure on SQL database on high load #1932

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
- develop
jobs:
checks:
name: Scalafmt and Scalafix
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: coursier/setup-action@v1
- run: sbt "scalafixAll --check"
- run: ./bin/scalafmt --test
unit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: coursier/setup-action@v1
with:
jvm: "adoptium:1.17"
- uses: coursier/cache-action@v6
- name: Unit tests
run: sbt test
shell: bash
- name: Package server
run: sbt server/universal:packageBin
shell: bash
integration:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: coursier/setup-action@v1
with:
jvm: "adoptium:1.17"
- name: Integration tests
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: sbt 'IntegrationTest/test'