-
Notifications
You must be signed in to change notification settings - Fork 43
50 lines (48 loc) · 1.93 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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