ci(targets): remove all non-master tests

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
Arthur Schiwon 2023-11-09 12:05:49 +01:00
parent babc5ccec9
commit bd9e433e5d
No known key found for this signature in database
GPG Key ID: 7424F1874854DF23
8 changed files with 1 additions and 290 deletions

View File

@ -1,39 +0,0 @@
name: Test cli
on:
pull_request:
push:
branches:
- main
- master
- stable*
permissions:
contents: read
jobs:
test-cli:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: ["8.1"]
name: test-cli
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up php ${{ matrix.php-versions }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: apcu,ctype,curl,dom,fileinfo,ftp,gd,intl,json,ldap,mbstring,openssl,pdo_sqlite,posix,sqlite,xml,zip
coverage: none
ini-file: development
- name: Install dependencies
run: composer i
- name: test-cli
run: make test-cli

View File

@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: ["8.0", "8.1", "8.2"]
php-versions: ["8.0", "8.1", "8.2", "8.3"]
name: test-master

View File

@ -1,58 +0,0 @@
name: Test stable
on:
pull_request:
push:
branches:
- main
- master
- stable*
permissions:
contents: read
jobs:
test-stable:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: ["8.0", "8.1", "8.2"]
nextcloud-versions: ["24", "25", "26"]
exclude:
- php-versions: "8.2"
nextcloud-versions: "25"
- php-versions: "8.2"
nextcloud-versions: "24"
name: test-stable
steps:
- name: Checkout
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
- name: Set up php ${{ matrix.php-versions }}
uses: shivammathur/setup-php@c5fc0d8281aba02c7fda07d3a70cc5371548067d # v2
with:
php-version: ${{ matrix.php-versions }}
extensions: apcu,ctype,curl,dom,fileinfo,ftp,gd,intl,json,ldap,mbstring,openssl,pdo_sqlite,posix,sqlite,xml,zip
coverage: none
ini-file: development
- name: Install dependencies
run: composer i
- name: test-stable${{ matrix.nextcloud-versions }}
run: make test-stable${{ matrix.nextcloud-versions }}
summary:
runs-on: ubuntu-latest
needs: test-stable
if: always()
name: test-stable-summary
steps:
- name: Summary status
run: if ${{ needs.test-stable.result != 'success' }}; then exit 1; fi

View File

@ -22,18 +22,6 @@ test/vendor:
test: updater.phar test/vendor
cd tests && vendor/behat/behat/bin/behat
test-cli: updater.phar test/vendor
cd tests && vendor/behat/behat/bin/behat features/cli.feature
test-stable24: updater.phar test/vendor
cd tests && vendor/behat/behat/bin/behat features/stable24.feature
test-stable25: updater.phar test/vendor
cd tests && vendor/behat/behat/bin/behat features/stable25.feature
test-stable26: updater.phar test/vendor
cd tests && vendor/behat/behat/bin/behat features/stable26.feature
test-master: updater.phar test/vendor
cd tests && vendor/behat/behat/bin/behat features/master.feature

View File

@ -1,84 +0,0 @@
Feature: CLI updater
Scenario: No update is available - 25.0.0
Given the current version is 25.0.0
When the CLI updater is run
Then the output should contain "Could not find config.php. Is this file in the "updater" subfolder of Nextcloud?"
Scenario: No update is available - 25.0.0
Given the current installed version is 25.0.0
And there is no update available
When the CLI updater is run successfully
Then the installed version should be 25.0.0
And maintenance mode should be off
And upgrade is not required
Scenario: Update is available - 25.0.0 to 25.0.1
Given the current installed version is 25.0.0
And there is an update to version 25.0.1 available
When the CLI updater is run successfully
Then the installed version should be 25.0.1
And maintenance mode should be off
And upgrade is not required
Scenario: Invalid update is available - 25.0.0 to 25.0.503
Given the current installed version is 25.0.0
And there is an update to version 25.0.503 available
When the CLI updater is run
Then the return code should not be 0
And the output should contain "Download failed - Not Found (HTTP 404)"
And the installed version should be 25.0.0
And maintenance mode should be off
And upgrade is not required
Scenario: Update without valid signature is being offered - 24.0.0 to 24.0.3
Given the current installed version is 24.0.0
# This works because 24.0.3 is in the signature list with an invalid signature
And there is an update to version 24.0.3 available
When the CLI updater is run
Then the return code should not be 0
And the output should contain "Signature of update is not valid"
And the installed version should be 24.0.0
And maintenance mode should be off
And upgrade is not required
Scenario: Update to older version - 25.0.0 to 24.0.2
Given the current installed version is 25.0.0
And there is an update to version 24.0.2 available
When the CLI updater is run
Then the return code should not be 0
And the output should contain "Downloaded version is lower than installed version"
And the installed version should be 25.0.0
And maintenance mode should be off
And upgrade is not required
Scenario: Update is available but autoupdate is disabled - 25.0.0 to 25.0.1
Given the current installed version is 25.0.0
And the autoupdater is disabled
And there is an update to version 25.0.1 available
When the CLI updater is run
Then the installed version should be 25.0.0
And maintenance mode should be off
And upgrade is not required
Scenario: Update is available and apps2 folder is there and configured - 25.0.0 to 25.0.1
Given the current installed version is 25.0.0
And there is an update to version 25.0.1 available
And there is a folder called "apps2"
And there is a config for a secondary apps directory called "apps2"
When the CLI updater is run successfully
Then the installed version should be 25.0.1
And maintenance mode should be off
And upgrade is not required
Scenario: Update is available and apps2 folder is there and not configured - 25.0.0 to 25.0.1
Given the current installed version is 25.0.0
And there is an update to version 25.0.1 available
And there is a folder called "apps2"
When the CLI updater is run
Then the return code should not be 0
And the output should contain "The following extra files have been found"
And the output should contain "apps2"
And the installed version should be 25.0.0
And maintenance mode should be off
And upgrade is not required

View File

@ -1,22 +0,0 @@
Feature: CLI updater - stable24 base
Scenario: Update is available - 24.0.0 to 24.0.1
Given the current installed version is 24.0.0
And there is an update to version 24.0.1 available
When the CLI updater is run successfully
And the output should contain "Update successful"
Then the installed version should be 24.0.1
And maintenance mode should be off
And upgrade is not required
Scenario: Update is available - 24.0.1 to 25.0.0
Given the current installed version is 24.0.1
And PHP is at least in version 8.0
And the current channel is "beta"
And there is an update to version 25.0.0 available
When the CLI updater is run successfully
And the output should contain "Update successful"
Then the installed version should be 25.0.0
And maintenance mode should be off
And upgrade is not required

View File

@ -1,54 +0,0 @@
Feature: CLI updater - stable25 base
Scenario: Update is available - 25.0.0 beta 1 to 25.0.0 rc 1
Given the current installed version is 25.0.0beta1
And there is an update to prerelease version "25.0.0rc1" available
And the version number is decreased in the config.php to enforce upgrade
When the CLI updater is run successfully
And the output should contain "Update successful"
Then the installed version should be 25.0
And maintenance mode should be off
And upgrade is not required
Scenario: Update is available but unexpected folder found - 25.0.6 to 25.0.7
Given the current installed version is 25.0.6
And there is an update to version 25.0.7 available
And there is a folder called "test123"
When the CLI updater is run
Then the return code should not be 0
And the output should contain "The following extra files have been found"
Then the installed version should be 25.0.6
And maintenance mode should be off
And upgrade is not required
Scenario: Update is available and .well-known folder exist - 25.0.6 to 25.0.7
Given the current installed version is 25.0.6
And there is an update to version 25.0.7 available
And there is a folder called ".well-known"
When the CLI updater is run successfully
And the output should contain "Update successful"
Then the installed version should be 25.0.7
And maintenance mode should be off
And upgrade is not required
Scenario: Update is available and .rnd file exist - 25.0.6 to 25.0.7
Given the current installed version is 25.0.6
And there is an update to version 25.0.7 available
And there is a folder called ".rnd"
When the CLI updater is run successfully
And the output should contain "Update successful"
Then the installed version should be 25.0.7
And maintenance mode should be off
And upgrade is not required
Scenario: Update is available - 25.0.0 to beta
Given the current installed version is 25.0.0rc1
And PHP is at least in version 8.0
And the current channel is "beta"
And there is an update to version 26.0.0 available
When the CLI updater is run successfully
And the output should contain "Update successful"
Then the installed version should be 26.0
And maintenance mode should be off
And upgrade is not required

View File

@ -1,20 +0,0 @@
Feature: CLI updater - stable26 base
Scenario: Update is available - 26.0.0 beta 3 to 26.0.0 beta 4
Given the current installed version is 26.0.0beta3
And there is an update to prerelease version "26.0.0beta4" available
And the version number is decreased in the config.php to enforce upgrade
When the CLI updater is run successfully
And the output should contain "Update successful"
Then the installed version should be 26.0
And maintenance mode should be off
And upgrade is not required
Scenario: Update is available - 26.0.0 RC 1 to 26.0.0
Given the current installed version is 26.0.0rc1
And there is an update to version 26.0.0 available
When the CLI updater is run successfully
And the output should contain "Update successful"
Then the installed version should be 26.0
And maintenance mode should be off
And upgrade is not required