Skip to content

fix reference to filesCollection #60

fix reference to filesCollection

fix reference to filesCollection #60

Workflow file for this run

name: (perf) MongoDB support test
on:
push:
branches: [ perf, "mongodb*", "*mongodb*" ]
pull_request:
branches: [ perf ]
jobs:
unit_test:
runs-on: ubuntu-latest
# Configuration, for us to perform test against multiple version in the future
strategy:
matrix:
mongodb-version: ['5.0']
# The test step
steps:
# Start the mongoDB
- name: Start MongoDB
uses: supercharge/[email protected]
with:
mongodb-version: ${{ matrix.mongodb-version }}
# The usual checkout, and test
- uses: actions/checkout@v1
- name: Init submodules
run: ./git-init-submodules.sh
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Cache Gradle packages
uses: actions/cache@v2
with:
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/build.gradle') }}
path: |
~/.gradle/caches
~/.gradle/wrapper
- name: Setup gradle binaries
run: ./gradlew
- name: Pull dependencies libs, and perform initial compile
run: ./gradlew src
# - name: Run unit tests
# run: ./gradlew test -Ptest_mongodb
- name: Run perf unit tests
run: |
./gradle-test-classpath.sh picoded.dstack.mongodb.MongoDB_DataObjectMap_perf
- name: Run jacocoTestReport
run: ./gradlew jacocoTestReport
- name: Archive code coverage results
uses: actions/upload-artifact@v2
if: always()
with:
name: test-result-report
path: |
build/reports/**/*
build/test-results/**/*
build/jacoco/**/*
- name: Upload code coverage to codecov
uses: codecov/codecov-action@v2
if: always()
with:
# flags: gradle-build # optional
# directory: build/jacoco/
verbose: true # optional (default = false)
fail_ci_if_error: false