Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[OP#49928] Enable CI in nextcloud master #493

Merged
merged 1 commit into from
Sep 8, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 18 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,15 @@ jobs:
name: unit tests and linting
strategy:
matrix:
nextcloudVersion: [ stable25, stable26, stable27 ]
nextcloudVersion: [ stable25, stable26, stable27, master ]
phpVersion: [ 7.4, 8.0, 8.1 ]
exclude:
- nextcloudVersion: stable26
phpVersion: 7.4
- nextcloudVersion: stable27
phpVersion: 7.4
- nextcloudVersion: master
phpVersion: 7.4
runs-on: ubuntu-20.04
steps:
- name: Checkout
Expand Down Expand Up @@ -103,7 +105,7 @@ jobs:
make jsunit
- name: JS Code Coverage Summary Report
if: ${{ github.event_name == 'pull_request' && matrix.nextcloudVersion == 'stable27' && matrix.phpVersion == '8.1' }}
if: ${{ github.event_name == 'pull_request' && matrix.nextcloudVersion == 'master' && matrix.phpVersion == '8.1' }}
uses: romeovs/lcov-reporter-action@v0.3.1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -112,14 +114,14 @@ jobs:
title: "JS Code Coverage"

- name: Setup .NET Core # this is required to execute Convert PHP cobertura coverage to lcov step
if: ${{ github.event_name == 'pull_request' && matrix.nextcloudVersion == 'stable27' && matrix.phpVersion == '8.1' }}
if: ${{ github.event_name == 'pull_request' && matrix.nextcloudVersion == 'master' && matrix.phpVersion == '8.1' }}
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.101
dotnet-quality: 'ga'

- name: Convert PHP cobertura coverage to lcov
if: ${{ github.event_name == 'pull_request' && matrix.nextcloudVersion == 'stable27' && matrix.phpVersion == '8.1' }}
if: ${{ github.event_name == 'pull_request' && matrix.nextcloudVersion == 'master' && matrix.phpVersion == '8.1' }}
uses: danielpalme/ReportGenerator-GitHub-Action@5.1.23
with:
reports: './server/apps/integration_openproject/coverage/php/cobertura.xml' # REQUIRED # The coverage reports that should be parsed (separated by semicolon). Globbing is supported.
Expand All @@ -138,7 +140,7 @@ jobs:
toolpath: 'reportgeneratortool' # Default directory for installing the dotnet tool.

- name: PHP Code Coverage Summary Report
if: ${{ github.event_name == 'pull_request' && matrix.nextcloudVersion == 'stable27' && matrix.phpVersion == '8.1' }}
if: ${{ github.event_name == 'pull_request' && matrix.nextcloudVersion == 'master' && matrix.phpVersion == '8.1' }}
uses: romeovs/lcov-reporter-action@v0.3.1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -147,14 +149,14 @@ jobs:
title: "PHP Code Coverage"

- name: JS coverage check
if: ${{ github.event_name == 'pull_request' && matrix.nextcloudVersion == 'stable27' && matrix.phpVersion == '8.1' }}
if: ${{ github.event_name == 'pull_request' && matrix.nextcloudVersion == 'master' && matrix.phpVersion == '8.1' }}
uses: VeryGoodOpenSource/very_good_coverage@v2
with:
min_coverage: '59'
path: './server/apps/integration_openproject/coverage/jest/lcov.info'

- name: PHP coverage check
if: ${{ github.event_name == 'pull_request' && matrix.nextcloudVersion == 'stable27' && matrix.phpVersion == '8.1' }}
if: ${{ github.event_name == 'pull_request' && matrix.nextcloudVersion == 'master' && matrix.phpVersion == '8.1' }}
uses: VeryGoodOpenSource/very_good_coverage@v2
with:
min_coverage: '56'
Expand All @@ -164,7 +166,7 @@ jobs:
name: API tests
strategy:
matrix:
nextcloudVersion: [ stable25, stable26, stable27 ]
nextcloudVersion: [ stable25, stable26, stable27, master ]
phpVersionMajor: [ 7, 8 ]
phpVersionMinor: [ 4, 1 ]
database: [pgsql, mysql]
Expand All @@ -185,14 +187,14 @@ jobs:
phpVersionMinor: 1
- phpVersionMajor: 8
phpVersionMinor: 4
# - nextcloudVersion: master
# phpVersionMajor: 7
# - phpVersionMajor: 7
# phpVersionMinor: 0
# - phpVersionMajor: 7
# phpVersionMinor: 1
# - phpVersionMajor: 8
# phpVersionMinor: 4
- nextcloudVersion: master
phpVersionMajor: 7
- phpVersionMajor: 7
phpVersionMinor: 0
- phpVersionMajor: 7
phpVersionMinor: 1
- phpVersionMajor: 8
phpVersionMinor: 4
runs-on: ubuntu-20.04
container:
image: ubuntu:latest
Expand Down
Loading