-
Notifications
You must be signed in to change notification settings - Fork 18
75 lines (66 loc) · 2.67 KB
/
cloud-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: Cloud Storage Tests
on:
workflow_dispatch:
pull_request:
branches:
- 'master'
- 'release-*'
push:
branches:
- 'master'
- 'beta'
- 'release-*'
- 'beta-corona'
schedule:
- cron: '0 0 * * 1' # At 00:00 on (every) Monday
jobs:
test-cloud-storage-providers:
name: Cloud Storage Provider Test
env:
GIT_REF: ${{ github.ref }}
GIT_SHA: ${{ github.sha }}
POM_PATH: ./pom.xml
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 1
- name: Setup Java JDK
uses: actions/[email protected]
with:
java-version: 17
- name: Setup Maven settings
uses: whelk-io/maven-settings-xml-action@v14
with:
repositories: '[{ "id": "github-genexuslabs", "url": "https://maven.pkg.github.com/genexuslabs/Private-Maven-for-GX", "releases": { "enabled": "true" }, "snapshots": { "enabled": "true" } }]'
servers: '[{ "id": "github-genexuslabs", "username": "genexusbot", "password": "${{ secrets.SECURE_TOKEN }}" }]'
- name: Install
run: mvn -B install --file $POM_PATH
- name: Test Cloud Storage
run: |
export AWSS3_TEST_ENABLED=true
export STORAGE_AWSS3_ACCESS_KEY="${{ secrets.AWSS3_ACCESS_KEY }}"
export STORAGE_AWSS3_SECRET_KEY="${{ secrets.AWSS3_SECRET_KEY }}"
export STORAGE_AWSS3_BUCKET_NAME=genexus-s3-test
export STORAGE_AWSS3_FOLDER_NAME=gxclasses
export STORAGE_AWSS3_REGION=us-east-1
export IBMCOS_TEST_ENABLED=true
export STORAGE_IBMCOS_ACCESS_KEY="${{ secrets.IBMCOS_ACCESS_KEY }}"
export STORAGE_IBMCOS_SECRET_KEY="${{ secrets.IBMCOS_SECRET_KEY }}"
export STORAGE_IBMCOS_BUCKET_NAME=gxclasses-unit-tests
export STORAGE_IBMCOS_FOLDER_NAME=tests
export STORAGE_IBMCOS_REGION=us-south
export AZUREBS_TEST_ENABLED=true
export STORAGE_AZUREBS_ACCESS_KEY="${{ secrets.AZUREBS_ACCESS_KEY }}"
export STORAGE_AZUREBS_ACCOUNT_NAME="${{ secrets.AZUREBS_ACCOUNT_NAME }}"
export STORAGE_AZUREBS_FOLDER_NAME=tests
export STORAGE_AZUREBS_PUBLIC_CONTAINER_NAME=contluispublic
export STORAGE_AZUREBS_PRIVATE_CONTAINER_NAME=contluisprivate
export GOOGLECS_TEST_ENABLED=true
export STORAGE_GOOGLECS_KEY="${{ secrets.GOOGLECS_KEY }}"
export STORAGE_GOOGLECS_PROJECT_ID=gxjavacloudstorageunittests
export STORAGE_GOOGLECS_BUCKET_NAME=javaclasses-unittests
export STORAGE_GOOGLECS_FOLDER_NAME=gxclasses
export STORAGE_GOOGLECS_APPLICATION_NAME=gxjavacloudstorageunittests
mvn -B -pl gxcloudstorage-tests test --file $POM_PATH