Skip to content

Commit

Permalink
fix workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
jabberwoc committed Feb 2, 2024
1 parent d6c2120 commit 1586046
Show file tree
Hide file tree
Showing 10 changed files with 26 additions and 37 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/appbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,5 @@ jobs:
RUST_BACKTRACE=1 krankerl package
- uses: actions/upload-artifact@v4
with:
name: Deck app tarball
path: build/artifacts/deck.tar.gz
name: App tarball
path: build/artifacts/templateapp.tar.gz
2 changes: 1 addition & 1 deletion .github/workflows/lint-eslint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# SPDX-FileCopyrightText: Nextcloud contributors
# SPDX-License-Identifier: AGPL-3.0-or-later

name: Lint
name: ESLint

on:
pull_request:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint-info-xml.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# SPDX-FileCopyrightText: Nextcloud contributors
# SPDX-License-Identifier: AGPL-3.0-or-later

name: Lint
name: Lint app info

on:
pull_request:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint-php-cs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# SPDX-FileCopyrightText: Nextcloud contributors
# SPDX-License-Identifier: AGPL-3.0-or-later

name: Lint
name: PHP Coding Standards Fixer

on:
pull_request:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint-php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# SPDX-FileCopyrightText: Nextcloud contributors
# SPDX-License-Identifier: AGPL-3.0-or-later

name: Lint
name: Lint PHP

on:
pull_request:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint-stylelint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# SPDX-FileCopyrightText: Nextcloud contributors
# SPDX-License-Identifier: AGPL-3.0-or-later

name: Lint
name: Stylelint

on:
pull_request:
Expand Down
14 changes: 4 additions & 10 deletions .github/workflows/phpunit-mysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,16 @@ env:

jobs:
generate-matrix:
runs-on: ubuntu-latest
outputs:
versions: ${{ steps.set-matrix.outputs.matrix }}
steps:
- name: Checkout to repository
uses: actions/checkout@v3
- name: Set matrix data
id: set-matrix
run: echo "matrix=$(jq -c . < ./versions.json)" >> $GITHUB_OUTPUT
uses: diz-unimr/.github/.github/workflows/generate-matrix.yml@main
with:
matrix-file: versions.json

phpunit-mysql:
runs-on: ubuntu-latest
needs: generate-matrix

strategy:
matrix: ${{ fromJson(needs.generate-matrix.outputs.versions) }}
matrix: ${{ fromJson(needs.generate-matrix.outputs.matrix) }}

services:
mysql:
Expand Down
14 changes: 4 additions & 10 deletions .github/workflows/phpunit-oci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,16 @@ env:

jobs:
generate-matrix:
runs-on: ubuntu-latest
outputs:
versions: ${{ steps.set-matrix.outputs.matrix }}
steps:
- name: Checkout to repository
uses: actions/checkout@v3
- name: Set matrix data
id: set-matrix
run: echo "matrix=$(jq -c . < ./versions.json)" >> $GITHUB_OUTPUT
uses: diz-unimr/.github/.github/workflows/generate-matrix.yml@main
with:
matrix-file: versions.json

phpunit-oci:
runs-on: ubuntu-20.04
needs: generate-matrix

strategy:
matrix: ${{ fromJson(needs.generate-matrix.outputs.versions) }}
matrix: ${{ fromJson(needs.generate-matrix.outputs.matrix) }}

services:
oracle:
Expand Down
14 changes: 4 additions & 10 deletions .github/workflows/phpunit-pgsql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,16 @@ env:

jobs:
generate-matrix:
runs-on: ubuntu-latest
outputs:
versions: ${{ steps.set-matrix.outputs.matrix }}
steps:
- name: Checkout to repository
uses: actions/checkout@v3
- name: Set matrix data
id: set-matrix
run: echo "matrix=$(jq -c . < ./versions.json)" >> $GITHUB_OUTPUT
uses: diz-unimr/.github/.github/workflows/generate-matrix.yml@main
with:
matrix-file: versions.json

phpunit-pgsql:
runs-on: ubuntu-latest
needs: generate-matrix

strategy:
matrix: ${{ fromJson(needs.generate-matrix.outputs.versions) }}
matrix: ${{ fromJson(needs.generate-matrix.outputs.matrix) }}

services:
postgres:
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@
-->

# Nextcloud app development example
[![ESLint](https://github.com/diz-unimr/nc-template-app/actions/workflows/lint-eslint.yml/badge.svg)](https://github.com/diz-unimr/nc-template-app/actions/workflows/lint-eslint.yml)
[![Lint app info](https://github.com/diz-unimr/nc-template-app/actions/workflows/lint-info-xml.yml/badge.svg)](https://github.com/diz-unimr/nc-template-app/actions/workflows/lint-info-xml.yml)
[![PHP Coding Standards Fixer](https://github.com/diz-unimr/nc-template-app/actions/workflows/lint-php-cs.yml/badge.svg)](https://github.com/diz-unimr/nc-template-app/actions/workflows/lint-php-cs.yml)
[![Stylelint](https://github.com/diz-unimr/nc-template-app/actions/workflows/lint-stylelint.yml/badge.svg)](https://github.com/diz-unimr/nc-template-app/actions/workflows/lint-stylelint.yml)
[![PHPUnit](https://github.com/diz-unimr/nc-template-app/actions/workflows/phpunit-pgsql.yml/badge.svg)](https://github.com/diz-unimr/nc-template-app/actions/workflows/phpunit-pgsql.yml)
[![Package build](https://github.com/diz-unimr/nc-template-app/actions/workflows/appbuild.yml/badge.svg)](https://github.com/diz-unimr/nc-template-app/actions/workflows/appbuild.yml)
[![REUSE Compliance Check](https://github.com/diz-unimr/nc-template-app/actions/workflows/reuse.yml/badge.svg)](https://github.com/diz-unimr/nc-template-app/actions/workflows/reuse.yml)

This is an example nextcloud app development setup.

Expand Down

0 comments on commit 1586046

Please sign in to comment.