-
Notifications
You must be signed in to change notification settings - Fork 8
76 lines (65 loc) · 2.51 KB
/
External-Storage-Tests.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
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 6
uses: actions/setup-dotnet@v2
with:
dotnet-version: '6.0.x'
- 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