refactor: changed build settings #108
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run Tests | |
on: | |
pull_request: | |
branches-ignore: | |
- 'main' | |
push: | |
branches-ignore: | |
- 'main' | |
jobs: | |
# code_quality: | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: 'Qodana Scan' | |
# uses: JetBrains/qodana-action@main | |
# env: | |
# QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }} | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: true | |
matrix: | |
mongodb-version: [ '4.4', '5.0', '6.0' ] | |
os: [ ubuntu-latest ] | |
steps: | |
- name: Git Checkout | |
uses: actions/[email protected] | |
- name: Setup TimeZone | |
uses: szenius/[email protected] | |
with: | |
timezoneLinux: "Europe/Berlin" | |
timezoneMacos: "Europe/Berlin" | |
timezoneWindows: "W. Europe Standard Time" | |
- name: Set up JDK | |
uses: coursier/setup-action@v1 | |
with: | |
jvm: graalvm-java17:22.3.2 | |
apps: sbt scala scalac | |
- name: Start MongoDB ${{ matrix.mongodb-version }} | |
uses: MongoCamp/[email protected] | |
with: | |
mongodb-version: ${{ matrix.mongodb-version }} | |
mongodb-port: 4711 | |
- name: Run tests | |
run: sbt test | |
- name: Build Docker Container for test | |
run: docker buildx build --platform=linux/amd64,linux/arm64/v8 . --tag mongocamp-server:test |