1
0
Fork 0
Nextcloud-News/.github/workflows/post-merge-tasks.yml

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