mirror of
https://github.com/chylex/Nextcloud-News.git
synced 2024-10-22 23:42:56 +02:00
33fe41e86a
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
46 lines
1.2 KiB
YAML
46 lines
1.2 KiB
YAML
name: Post-merge tasks
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
jobs:
|
|
php:
|
|
runs-on: ubuntu-latest
|
|
continue-on-error: false
|
|
name: "Coverage: Nextcloud PHP ${{ matrix.php-versions }}"
|
|
strategy:
|
|
matrix:
|
|
nextcloud: ['stable24']
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Setup PHP
|
|
uses: shivammathur/setup-php@v2
|
|
with:
|
|
php-version: '8.1'
|
|
|
|
### Back to normal setup
|
|
- name: Set up server non MySQL
|
|
uses: SMillerDev/nextcloud-actions/setup-nextcloud@main
|
|
with:
|
|
cron: true
|
|
version: ${{ matrix.nextcloud }}
|
|
database-type: sqlite
|
|
|
|
- name: Prime app build
|
|
run: make
|
|
|
|
- name: Configure server with app
|
|
uses: SMillerDev/nextcloud-actions/setup-nextcloud-app@main
|
|
with:
|
|
app: 'news'
|
|
check-code: false
|
|
|
|
- name: Prep PHP tests
|
|
run: cd ../server/apps/news && make php-test-dependencies
|
|
- name: Unittests
|
|
run: cd ../server/apps/news && make unit-test
|
|
- name: Upload codecoverage
|
|
run: cd ../server/apps/news && bash <(curl -s https://codecov.io/bash) -f build/php-unit.clover
|