summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorDevlin Junker <devlin.junker@gmail.com>2023-10-22 13:57:14 -0700
committerDevlin Junker <devlin.junker@gmail.com>2023-10-22 14:03:52 -0700
commit3e35d781cf712efa1473b4495a48299326b52c0c (patch)
tree9643b2e75ee3139bb6c5abb102d6f69937a5169e /.github
parent94f04d4a20cbbadb7d8ad835bc7ae3dc1c4256fd (diff)
parentd423ca520ca9c61233c33717d604e3183f0f486c (diff)
Merge remote-tracking branch 'nextcloud/master' into master-merge
Signed-off-by: Devlin Junker <devlin.junker@gmail.com>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/api-integration-tests.yml2
-rw-r--r--.github/workflows/api-php-static-code-check.yml2
-rw-r--r--.github/workflows/api-php-tests.yml8
-rw-r--r--.github/workflows/build-release.yml10
-rw-r--r--.github/workflows/documentation.yml2
-rw-r--r--.github/workflows/frontend-nodejs-tests.yml2
-rw-r--r--.github/workflows/lint-eslint.yml2
-rw-r--r--.github/workflows/post-merge-tasks.yml12
-rw-r--r--.github/workflows/updater-test.yml2
9 files changed, 27 insertions, 15 deletions
diff --git a/.github/workflows/api-integration-tests.yml b/.github/workflows/api-integration-tests.yml
index f7619ff18..bf22f2501 100644
--- a/.github/workflows/api-integration-tests.yml
+++ b/.github/workflows/api-integration-tests.yml
@@ -43,7 +43,7 @@ jobs:
experimental: true
steps:
- name: Checkout
- uses: actions/checkout@v3
+ uses: actions/checkout@v4
with:
submodules: recursive
diff --git a/.github/workflows/api-php-static-code-check.yml b/.github/workflows/api-php-static-code-check.yml
index 37035c244..034b7d34c 100644
--- a/.github/workflows/api-php-static-code-check.yml
+++ b/.github/workflows/api-php-static-code-check.yml
@@ -18,7 +18,7 @@ jobs:
name: "phpstan: Nextcloud ${{ matrix.nextcloud }} with ${{ matrix.php-versions }}"
steps:
- name: Checkout
- uses: actions/checkout@v3
+ uses: actions/checkout@v4
- name: Set up php
uses: shivammathur/setup-php@master
with:
diff --git a/.github/workflows/api-php-tests.yml b/.github/workflows/api-php-tests.yml
index 1b309daf8..2723e14ea 100644
--- a/.github/workflows/api-php-tests.yml
+++ b/.github/workflows/api-php-tests.yml
@@ -14,9 +14,15 @@ jobs:
database: ['sqlite']
experimental: [false]
codecoverage: [false]
+ include:
+ - php-versions: 8.2
+ nextcloud: stable27
+ database: sqlite
+ experimental: false
+ codecoverage: true
steps:
- name: Checkout
- uses: actions/checkout@v3
+ uses: actions/checkout@v4
with:
fetch-depth: 2 # https://github.com/codecov/codecov-action/issues/190#issuecomment-790729633
diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml
index 636235de0..b955bc663 100644
--- a/.github/workflows/build-release.yml
+++ b/.github/workflows/build-release.yml
@@ -19,17 +19,17 @@ jobs:
database: ['sqlite']
steps:
- name: Checkout
- uses: actions/checkout@v3
+ uses: actions/checkout@v4
- name: Setup PHP
- uses: shivammathur/setup-php@afefcaf556d98dc7896cca380e181decb609ca44
+ uses: shivammathur/setup-php@7fdd3ece872ec7ec4c098ae5ab7637d5e0a96067 #2.26.0
with:
php-version: ${{ matrix.php-versions }}
extensions: pdo_sqlite,pdo_mysql,pdo_pgsql,gd,zip
coverage: none
- name: Set up server non MySQL
- uses: SMillerDev/nextcloud-actions/setup-nextcloud@main
+ uses: SMillerDev/nextcloud-actions/setup-nextcloud@1e38cb369e2193642279c64ee140fc93ddd4fa77
with:
cron: false
version: ${{ matrix.nextcloud }}
@@ -39,7 +39,7 @@ jobs:
run: make
- name: Configure server with app
- uses: SMillerDev/nextcloud-actions/setup-nextcloud-app@main
+ uses: SMillerDev/nextcloud-actions/setup-nextcloud-app@1e38cb369e2193642279c64ee140fc93ddd4fa77
with:
app: ${{ env.APP_NAME }}
check-code: false
@@ -52,7 +52,7 @@ jobs:
app_public_crt: ${{ secrets.APP_PUBLIC_CRT }}
- name: Upload app tarball to release
- uses: svenstaro/upload-release-action@2b9d2847a97b04d02ad5c3df2d3a27baa97ce689
+ uses: svenstaro/upload-release-action@1beeb572c19a9242f4361f4cee78f8e0d9aec5df
id: attach_to_release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml
index 9b7022748..ddf60315f 100644
--- a/.github/workflows/documentation.yml
+++ b/.github/workflows/documentation.yml
@@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout master
- uses: actions/checkout@v3
+ uses: actions/checkout@v4
- name: Deploy docs
uses: mhausenblas/mkdocs-deploy-gh-pages@master
diff --git a/.github/workflows/frontend-nodejs-tests.yml b/.github/workflows/frontend-nodejs-tests.yml
index e077e7d1b..a51bc3366 100644
--- a/.github/workflows/frontend-nodejs-tests.yml
+++ b/.github/workflows/frontend-nodejs-tests.yml
@@ -15,7 +15,7 @@ jobs:
experimental: [false]
steps:
- name: Checkout
- uses: actions/checkout@v3
+ uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
diff --git a/.github/workflows/lint-eslint.yml b/.github/workflows/lint-eslint.yml
index ec439166b..098ff9819 100644
--- a/.github/workflows/lint-eslint.yml
+++ b/.github/workflows/lint-eslint.yml
@@ -22,7 +22,7 @@ jobs:
steps:
- name: Checkout
- uses: actions/checkout@v3
+ uses: actions/checkout@v4
- name: Read package.json node and npm engines version
uses: skjnldsv/read-package-engines-version-actions@v2.2
diff --git a/.github/workflows/post-merge-tasks.yml b/.github/workflows/post-merge-tasks.yml
index ea446f0ce..58859acec 100644
--- a/.github/workflows/post-merge-tasks.yml
+++ b/.github/workflows/post-merge-tasks.yml
@@ -7,18 +7,20 @@ jobs:
php:
runs-on: ubuntu-latest
continue-on-error: false
- name: "Coverage: Nextcloud PHP ${{ matrix.php-versions }}"
+ name: "Coverage: Nextcloud ${{ matrix.nextcloud }} PHP ${{ matrix.php-version }}"
strategy:
matrix:
nextcloud: ['stable27']
+ codecoverage: [true]
+ php-version: ["8.1"]
steps:
- name: Checkout
- uses: actions/checkout@v3
+ uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
- php-version: '8.1'
+ php-version: ${{ matrix.php-version }}
### Back to normal setup
- name: Set up server non MySQL
@@ -39,7 +41,11 @@ jobs:
- name: Prep PHP tests
run: cd ../server/apps/news && make php-test-dependencies
+
- name: Unittests
run: cd ../server/apps/news && make unit-test
+ env:
+ CODECOVERAGE: ${{ matrix.codecoverage }}
+
- name: Upload codecoverage
run: cd ../server/apps/news && bash <(curl -s https://codecov.io/bash) -f build/php-unit.clover
diff --git a/.github/workflows/updater-test.yml b/.github/workflows/updater-test.yml
index eb5901a51..3f9b217ee 100644
--- a/.github/workflows/updater-test.yml
+++ b/.github/workflows/updater-test.yml
@@ -22,7 +22,7 @@ jobs:
experimental: [false]
steps:
- name: Checkout
- uses: actions/checkout@v3
+ uses: actions/checkout@v4
with:
submodules: recursive