1
0
mirror of https://github.com/chylex/Nextcloud-News.git synced 2024-10-16 23:42:49 +02:00
Nextcloud-News/.github/workflows/post-merge-tasks.yml
Benjamin Brahmer d11f0cafab use stable26
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2023-03-06 17:07:19 +01:00

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: ['stable26']
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