Skip to content

fix: tests

fix: tests #628

Workflow file for this run

name: unit tests
on:
push:
branches:
- "**"
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- name: "Run unit test"
command: sbt -Dsbt.color=always -Dsbt.supershell=false ";izanami-server/test;jvm/test"
- name: "Run integration that depends on dynamo"
command: ./scripts/runIt.sh "dynamodb" "specs.dynamo.*"
- name: "Run integration that depends on elasticsearch6"
command: ./scripts/runIt.sh "elasticsearch6" "specs.elastic6.*"
- name: "Run integration that depends on elasticsearch7"
command: ./scripts/runIt.sh "elasticsearch7" "specs.elastic7.*"
- name: "Run integration that depends on levedb"
command: ./scripts/runIt.sh "" "specs.leveldb.*"
- name: "Run integration that depends on memory"
command: ./scripts/runIt.sh "" "specs.memory.*"
- name: "Run integration that depends on memory with db"
command: ./scripts/runIt.sh "" "specs.memorywithdb.*"
- name: "Run integration that depends on mongo"
command: ./scripts/runIt.sh "mongo" "specs.mongo.*"
- name: "Run integration that depends on postgresql"
command: ./scripts/runIt.sh "postgres_test" "specs.postgresql.*"
- name: "Run integration that depends on redis"
command: ./scripts/runIt.sh "redis" "specs.redis.*"
name: ${{ matrix.name }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: "temurin"
java-version-file: ".java-version"
cache: "sbt"
- uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
cache: "yarn"
cache-dependency-path: "**/package-lock.json"
- uses: ./.github/workflows/java-opts
- run: ${{ matrix.command }}
- if: ${{ failure() }}
run: docker-compose logs