Skip to content

Commit

Permalink
add: share link test matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
MahdiBaghbani committed Nov 18, 2024
1 parent 7830736 commit 3be0dec
Show file tree
Hide file tree
Showing 11 changed files with 585 additions and 56 deletions.
112 changes: 56 additions & 56 deletions .github/workflows/ocm-test-suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -195,67 +195,67 @@
# name: share-with from ${{ matrix.sender.platform }} ${{ matrix.sender.version }} to ${{ matrix.receiver.platform }} ${{ matrix.receiver.version }}
# path: ./cypress/ocm-test-suite/cypress/videos

# share-link:
# if: ${{ always() }}
# needs: [login]
# strategy:
# fail-fast: false
# max-parallel: 9
# matrix:
# sender: [
# {
# platform: nextcloud,
# version: v27.1.10
# },
# {
# platform: nextcloud,
# version: v28.0.12
# },
# {
# platform: owncloud,
# version: v10.14.0
# },
# ]
# receiver: [
# {
# platform: nextcloud,
# version: v27.1.10
# },
# {
# platform: nextcloud,
# version: v28.0.12
# },
# {
# platform: owncloud,
# version: v10.14.0
# },
# ]
# share-link:
# if: ${{ always() }}
# needs: [login]
# strategy:
# fail-fast: false
# max-parallel: 9
# matrix:
# sender: [
# {
# platform: nextcloud,
# version: v27.1.10
# },
# {
# platform: nextcloud,
# version: v28.0.12
# },
# {
# platform: owncloud,
# version: v10.14.0
# },
# ]
# receiver: [
# {
# platform: nextcloud,
# version: v27.1.10
# },
# {
# platform: nextcloud,
# version: v28.0.12
# },
# {
# platform: owncloud,
# version: v10.14.0
# },
# ]

# # The OS to run tests on, (I believe for OCM testing OS is really not that important).
# runs-on: ubuntu-22.04
# # The OS to run tests on, (I believe for OCM testing OS is really not that important).
# runs-on: ubuntu-22.04

# # Steps represent a sequence of tasks that will be executed as part of the job.
# steps:
# # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it.
# - name: Checkout.
# uses: actions/checkout@v4
# # Steps represent a sequence of tasks that will be executed as part of the job.
# steps:
# # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it.
# - name: Checkout.
# uses: actions/checkout@v4

# - name: Pull images.
# shell: bash
# run: |
# ./docker/pull/ocm-test-suite/${{ matrix.sender.platform }}.sh ${{ matrix.sender.version }}
# ./docker/pull/ocm-test-suite/${{ matrix.receiver.platform }}.sh ${{ matrix.receiver.version }}
# - name: Pull images.
# shell: bash
# run: |
# ./docker/pull/ocm-test-suite/${{ matrix.sender.platform }}.sh ${{ matrix.sender.version }}
# ./docker/pull/ocm-test-suite/${{ matrix.receiver.platform }}.sh ${{ matrix.receiver.version }}

# - name: Run tests.
# shell: bash
# run: ./dev/ocm-test-suite.sh share-link ${{ matrix.sender.platform }} ${{ matrix.sender.version }} ci electron ${{ matrix.receiver.platform }} ${{ matrix.receiver.version }}
# - name: Run tests.
# shell: bash
# run: ./dev/ocm-test-suite.sh share-link ${{ matrix.sender.platform }} ${{ matrix.sender.version }} ci electron ${{ matrix.receiver.platform }} ${{ matrix.receiver.version }}

# - name: Upload Cypress video artifacts.
# uses: actions/upload-artifact@v4
# if: always()
# with:
# name: share-link from ${{ matrix.sender.platform }} ${{ matrix.sender.version }} to ${{ matrix.receiver.platform }} ${{ matrix.receiver.version }}
# path: ./cypress/ocm-test-suite/cypress/videos
# - name: Upload Cypress video artifacts.
# uses: actions/upload-artifact@v4
# if: always()
# with:
# name: share-link from ${{ matrix.sender.platform }} ${{ matrix.sender.version }} to ${{ matrix.receiver.platform }} ${{ matrix.receiver.version }}
# path: ./cypress/ocm-test-suite/cypress/videos

# invite-link:
# if: ${{ always() }}
Expand Down
58 changes: 58 additions & 0 deletions .github/workflows/share-link-nc-v27-nc-v27.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: OCM Test Share Link NC v27.1.10 to NC v27.1.10

# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the specified branch.
push:
branches:
- main
pull_request:
branches:
- main
# Allows you to run this workflow manually from the Actions tab.
workflow_dispatch:

jobs:
share-link:
strategy:
fail-fast: false
max-parallel: 1
matrix:
sender: [
{
platform: nextcloud,
version: v27.1.10
},
]
receiver: [
{
platform: nextcloud,
version: v27.1.10
},
]

# The OS to run tests on, (I believe for OCM testing OS is really not that important).
runs-on: ubuntu-24.04

# Steps represent a sequence of tasks that will be executed as part of the job.
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it.
- name: Checkout.
uses: actions/checkout@v4

- name: Pull images.
shell: bash
run: |
./docker/pull/ocm-test-suite/${{ matrix.sender.platform }}.sh ${{ matrix.sender.version }}
./docker/pull/ocm-test-suite/${{ matrix.receiver.platform }}.sh ${{ matrix.receiver.version }}
- name: Run tests.
shell: bash
run: ./dev/ocm-test-suite.sh share-link ${{ matrix.sender.platform }} ${{ matrix.sender.version }} ci electron ${{ matrix.receiver.platform }} ${{ matrix.receiver.version }}

- name: Upload Cypress video artifacts.
uses: actions/upload-artifact@v4
if: always()
with:
name: share-link from ${{ matrix.sender.platform }} ${{ matrix.sender.version }} to ${{ matrix.receiver.platform }} ${{ matrix.receiver.version }}
path: ./cypress/ocm-test-suite/cypress/videos
58 changes: 58 additions & 0 deletions .github/workflows/share-link-nc-v27-nc-v28.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: OCM Test Share Link NC v27.1.10 to NC v28.0.12

# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the specified branch.
push:
branches:
- main
pull_request:
branches:
- main
# Allows you to run this workflow manually from the Actions tab.
workflow_dispatch:

jobs:
share-link:
strategy:
fail-fast: false
max-parallel: 1
matrix:
sender: [
{
platform: nextcloud,
version: v27.1.10
},
]
receiver: [
{
platform: nextcloud,
version: v28.0.12
},
]

# The OS to run tests on, (I believe for OCM testing OS is really not that important).
runs-on: ubuntu-24.04

# Steps represent a sequence of tasks that will be executed as part of the job.
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it.
- name: Checkout.
uses: actions/checkout@v4

- name: Pull images.
shell: bash
run: |
./docker/pull/ocm-test-suite/${{ matrix.sender.platform }}.sh ${{ matrix.sender.version }}
./docker/pull/ocm-test-suite/${{ matrix.receiver.platform }}.sh ${{ matrix.receiver.version }}
- name: Run tests.
shell: bash
run: ./dev/ocm-test-suite.sh share-link ${{ matrix.sender.platform }} ${{ matrix.sender.version }} ci electron ${{ matrix.receiver.platform }} ${{ matrix.receiver.version }}

- name: Upload Cypress video artifacts.
uses: actions/upload-artifact@v4
if: always()
with:
name: share-link from ${{ matrix.sender.platform }} ${{ matrix.sender.version }} to ${{ matrix.receiver.platform }} ${{ matrix.receiver.version }}
path: ./cypress/ocm-test-suite/cypress/videos
58 changes: 58 additions & 0 deletions .github/workflows/share-link-nc-v27-oc-v10.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: OCM Test Share Link NC v27.1.10 to OC v10.14.0

# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the specified branch.
push:
branches:
- main
pull_request:
branches:
- main
# Allows you to run this workflow manually from the Actions tab.
workflow_dispatch:

jobs:
share-link:
strategy:
fail-fast: false
max-parallel: 1
matrix:
sender: [
{
platform: nextcloud,
version: v27.1.10
},
]
receiver: [
{
platform: owncloud,
version: v10.14.0
},
]

# The OS to run tests on, (I believe for OCM testing OS is really not that important).
runs-on: ubuntu-24.04

# Steps represent a sequence of tasks that will be executed as part of the job.
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it.
- name: Checkout.
uses: actions/checkout@v4

- name: Pull images.
shell: bash
run: |
./docker/pull/ocm-test-suite/${{ matrix.sender.platform }}.sh ${{ matrix.sender.version }}
./docker/pull/ocm-test-suite/${{ matrix.receiver.platform }}.sh ${{ matrix.receiver.version }}
- name: Run tests.
shell: bash
run: ./dev/ocm-test-suite.sh share-link ${{ matrix.sender.platform }} ${{ matrix.sender.version }} ci electron ${{ matrix.receiver.platform }} ${{ matrix.receiver.version }}

- name: Upload Cypress video artifacts.
uses: actions/upload-artifact@v4
if: always()
with:
name: share-link from ${{ matrix.sender.platform }} ${{ matrix.sender.version }} to ${{ matrix.receiver.platform }} ${{ matrix.receiver.version }}
path: ./cypress/ocm-test-suite/cypress/videos
58 changes: 58 additions & 0 deletions .github/workflows/share-link-nc-v28-nc-v27.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: OCM Test Share Link NC v28.0.12 to NC v27.1.10

# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the specified branch.
push:
branches:
- main
pull_request:
branches:
- main
# Allows you to run this workflow manually from the Actions tab.
workflow_dispatch:

jobs:
share-link:
strategy:
fail-fast: false
max-parallel: 1
matrix:
sender: [
{
platform: nextcloud,
version: v28.0.12
},
]
receiver: [
{
platform: nextcloud,
version: v27.1.10
},
]

# The OS to run tests on, (I believe for OCM testing OS is really not that important).
runs-on: ubuntu-24.04

# Steps represent a sequence of tasks that will be executed as part of the job.
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it.
- name: Checkout.
uses: actions/checkout@v4

- name: Pull images.
shell: bash
run: |
./docker/pull/ocm-test-suite/${{ matrix.sender.platform }}.sh ${{ matrix.sender.version }}
./docker/pull/ocm-test-suite/${{ matrix.receiver.platform }}.sh ${{ matrix.receiver.version }}
- name: Run tests.
shell: bash
run: ./dev/ocm-test-suite.sh share-link ${{ matrix.sender.platform }} ${{ matrix.sender.version }} ci electron ${{ matrix.receiver.platform }} ${{ matrix.receiver.version }}

- name: Upload Cypress video artifacts.
uses: actions/upload-artifact@v4
if: always()
with:
name: share-link from ${{ matrix.sender.platform }} ${{ matrix.sender.version }} to ${{ matrix.receiver.platform }} ${{ matrix.receiver.version }}
path: ./cypress/ocm-test-suite/cypress/videos
Loading

0 comments on commit 3be0dec

Please sign in to comment.