Skip to content

Cherry pick branch 'genexuslabs:embedding-data-type' into beta #4696

Cherry pick branch 'genexuslabs:embedding-data-type' into beta

Cherry pick branch 'genexuslabs:embedding-data-type' into beta #4696

name: External Storage Tests
on:
pull_request:
branches:
- 'master'
- 'release-*'
push:
branches:
- 'master'
- 'beta'
- 'release-*'
jobs:
test-external-storages:
env:
GIT_REF: ${{ github.ref }}
GIT_SHA: ${{ github.sha }}
Configuration: Release
SolutionFile: dotnet\DotNetStandardClasses.sln
runs-on: windows-latest
environment: external-storage-tests
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install .NET 8
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.x'
include-prerelease: true
- name: Restore packages
run: dotnet restore $Env:SolutionFile
- name: Build
run: dotnet build $Env:SolutionFile --no-restore --configuration $Env:Configuration
- name: Test External Storage
run: |
$Env:AWSS3_TEST_ENABLED="true"
$Env:STORAGE_AWSS3_ACCESS_KEY="${{ secrets.AWSS3_ACCESS_KEY }}"
$Env:STORAGE_AWSS3_SECRET_KEY="${{ secrets.AWSS3_SECRET_KEY }}"
$Env:STORAGE_AWSS3_BUCKET_NAME="genexus-s3-test"
$Env:STORAGE_AWSS3_FOLDER_NAME="gxclasses"
$Env:STORAGE_AWSS3_REGION="us-east-1"
$Env:IBMCOS_TEST_ENABLED="true"
$Env:STORAGE_IBMCOS_ACCESS_KEY="${{ secrets.IBMCOS_ACCESS_KEY }}"
$Env:STORAGE_IBMCOS_SECRET_KEY="${{ secrets.IBMCOS_SECRET_KEY }}"
$Env:STORAGE_IBMCOS_BUCKET_NAME="gxclasses-unit-tests"
$Env:STORAGE_IBMCOS_FOLDER_NAME="tests"
$Env:STORAGE_IBMCOS_REGION="us-south"
$Env:AZUREBS_TEST_ENABLED="true"
$Env:STORAGE_AZUREBS_ACCESS_KEY="${{ secrets.AZUREBS_ACCESS_KEY }}"
$Env:STORAGE_AZUREBS_ACCOUNT_NAME="${{ secrets.AZUREBS_ACCOUNT_NAME }}"
$Env:STORAGE_AZUREBS_FOLDER_NAME="tests"
$Env:STORAGE_AZUREBS_PUBLIC_CONTAINER_NAME="contluispublic"
$Env:STORAGE_AZUREBS_PRIVATE_CONTAINER_NAME="contluisprivate"
$Env:GOOGLECS_TEST_ENABLED="true"
$Env:STORAGE_GOOGLECS_KEY='${{ secrets.GOOGLECS_KEY }}'
$Env:STORAGE_GOOGLECS_PROJECT_ID="gxjavacloudstorageunittests"
$Env:STORAGE_GOOGLECS_BUCKET_NAME="javaclasses-unittests"
$Env:STORAGE_GOOGLECS_FOLDER_NAME="gxclasses"
$Env:STORAGE_GOOGLECS_APPLICATION_NAME="gxjavacloudstorageunittests"
dotnet test $Env:SolutionFile --no-restore --no-build --configuration $Env:Configuration