Skip to content

Test with old mongo version #370

Test with old mongo version

Test with old mongo version #370

name: Test with old mongo version
on:
schedule:
# launch a build every day on develop
- cron: '0 23 * * *'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
permissions: read-all
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
- name: Job status
run: |
export OF_VERSION=$(<VERSION)
echo "----------------------------"
echo "Trigger by : ${{ github.event_name }}"
echo "On branch : ${{ github.ref_name }} "
echo "---------------------------"
- name: Cache Gradle packages
uses: actions/cache@3624ceb22c1c5a301c8db4169662070a689d9ea8 # v4.1.1
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('gradle.properties','**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
- name: Install
run: ./CICD/github/install.sh
- name: Build
run: |
./CICD/github/build.sh
./CICD/github/setOldMongoVersion.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
- name: Karate tests
run: ./CICD/github/launch_karate_tests.sh
- name: Cypress tests
run: ./CICD/github/launch_cypress_tests.sh
- name: Upload cypress screenshots
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
if: failure()
with:
name: cypress-screenshots
path: src/test/cypress/cypress/screenshots