Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/updater.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2022-07-28 17:39:44 +0300
committerCôme Chilliet <come.chilliet@nextcloud.com>2022-08-02 10:51:36 +0300
commita93852d3aae06fffd1e0a59cfd0be5a3072a3075 (patch)
tree7d3f06d51a2a75cff2c41f66d4a797593c81e2d7
parent8a873e6f425812d516cd686b9e317781a1190be2 (diff)
Testing all versions through github workflows
Exclude testing 19 and 20 on PHP 8.0 Test cli on 7.4 as it tests 19 and 20 Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
-rw-r--r--.drone.yml141
-rw-r--r--.github/workflows/check-same-code-base.yml34
-rw-r--r--.github/workflows/test-cli.yml (renamed from .github/workflows/test-stable21.yml)10
-rw-r--r--.github/workflows/test-stable.yml40
4 files changed, 79 insertions, 146 deletions
diff --git a/.drone.yml b/.drone.yml
deleted file mode 100644
index 37e8293..0000000
--- a/.drone.yml
+++ /dev/null
@@ -1,141 +0,0 @@
-kind: pipeline
-name: check-same-code-base
-
-steps:
- - name: check-same-code-base
- image: ghcr.io/nextcloud/continuous-integration-php8.0:latest
- commands:
- - make check-same-code-base
-
-trigger:
- branch:
- - master
- - stable*
- event:
- - pull_request
- - push
-
----
-kind: pipeline
-name: php74-cli
-
-steps:
- - name: php74-cli
- image: ghcr.io/nextcloud/continuous-integration-php7.4:latest
- commands:
- - make test-cli
-
-trigger:
- branch:
- - master
- - stable*
- event:
- - pull_request
- - push
----
-kind: pipeline
-name: php74-stable19
-
-steps:
- - name: php74-stable19
- image: ghcr.io/nextcloud/continuous-integration-php7.4:latest
- commands:
- - make test-stable19
-
-trigger:
- branch:
- - master
- - stable*
- event:
- - pull_request
- - push
-
----
-kind: pipeline
-name: php74-stable20
-
-steps:
- - name: php74-stable20
- image: ghcr.io/nextcloud/continuous-integration-php7.4:latest
- commands:
- - make test-stable20
-
-trigger:
- branch:
- - master
- - stable*
- event:
- - pull_request
- - push
-
----
-kind: pipeline
-name: php74-stable21
-
-steps:
- - name: php74-stable21
- image: ghcr.io/nextcloud/continuous-integration-php7.4:latest
- commands:
- - make test-stable21
-
-trigger:
- branch:
- - master
- - stable*
- event:
- - pull_request
- - push
-
----
-kind: pipeline
-name: php80-stable21
-
-steps:
- - name: php80-stable21
- image: ghcr.io/nextcloud/continuous-integration-php8.0:latest
- commands:
- - make test-stable21
-
-trigger:
- branch:
- - master
- - stable*
- event:
- - pull_request
- - push
-
----
-kind: pipeline
-name: php74-master
-
-steps:
- - name: php74-master
- image: ghcr.io/nextcloud/continuous-integration-php7.4:latest
- commands:
- - make test-master
-
-trigger:
- branch:
- - master
- - stable*
- event:
- - pull_request
- - push
-
----
-kind: pipeline
-name: php80-master
-
-steps:
- - name: php80-master
- image: ghcr.io/nextcloud/continuous-integration-php8.0:latest
- commands:
- - make test-master
-
-trigger:
- branch:
- - master
- - stable*
- event:
- - pull_request
- - push
diff --git a/.github/workflows/check-same-code-base.yml b/.github/workflows/check-same-code-base.yml
new file mode 100644
index 0000000..4cf592d
--- /dev/null
+++ b/.github/workflows/check-same-code-base.yml
@@ -0,0 +1,34 @@
+name: Check same code base
+
+on:
+ pull_request:
+ push:
+ branches:
+ - main
+ - master
+ - stable*
+
+permissions:
+ contents: read
+
+jobs:
+ php-lint:
+ runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ php-versions: ["8.0"]
+
+ name: check-same-code-base
+
+ 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 }}
+ coverage: none
+
+ - name: check-same-code-base
+ run: make check-same-code-base
diff --git a/.github/workflows/test-stable21.yml b/.github/workflows/test-cli.yml
index 2345cd3..f3b2657 100644
--- a/.github/workflows/test-stable21.yml
+++ b/.github/workflows/test-cli.yml
@@ -1,4 +1,4 @@
-name: Test stable21
+name: Test cli
on:
pull_request:
@@ -16,9 +16,9 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
- php-versions: ["7.4", "8.0"]
+ php-versions: ["7.4"]
- name: test-stable21
+ name: test-cli
steps:
- name: Checkout
@@ -30,5 +30,5 @@ jobs:
php-version: ${{ matrix.php-versions }}
coverage: none
- - name: test-stable21
- run: make test-stable21
+ - name: test-cli
+ run: make test-cli
diff --git a/.github/workflows/test-stable.yml b/.github/workflows/test-stable.yml
new file mode 100644
index 0000000..a8ebf0c
--- /dev/null
+++ b/.github/workflows/test-stable.yml
@@ -0,0 +1,40 @@
+name: Test stable
+
+on:
+ pull_request:
+ push:
+ branches:
+ - main
+ - master
+ - stable*
+
+permissions:
+ contents: read
+
+jobs:
+ php-lint:
+ runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ php-versions: ["7.4", "8.0"]
+ nextcloud-versions: ["19", "20", "21"]
+ exclude:
+ - php-versions: "8.0"
+ nextcloud-versions: "19"
+ - php-versions: "8.0"
+ nextcloud-versions: "20"
+
+ name: test-stable
+
+ 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 }}
+ coverage: none
+
+ - name: test-stable${{ matrix.nextcloud-versions }}
+ run: make test-stable${{ matrix.nextcloud-versions }}