Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/christophwurst/nextcloud-test-matrix-action
Generate Nextcloud test matrix
https://github.com/christophwurst/nextcloud-test-matrix-action
Last synced: about 1 month ago
JSON representation
Generate Nextcloud test matrix
- Host: GitHub
- URL: https://github.com/christophwurst/nextcloud-test-matrix-action
- Owner: ChristophWurst
- License: mit
- Created: 2023-06-02T08:54:47.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-06-02T12:10:26.000Z (over 1 year ago)
- Last Synced: 2024-10-29T19:02:41.884Z (3 months ago)
- Language: JavaScript
- Size: 94.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Generate Nextcloud test matrix'
Generate a test matrix with Nextcloud and PHP versions based on version ranges
## Inputs
* **Required** ``min-php-version``: Minimum PHP version, e.g. '8.0'.
* **Required** ``max-php-version``: Maximum PHP version, e.g. '8.0'.
* **Optional** `min-nextcloud-version`: Minimum PHP version, e.g. 'master' or '25'.
* **Optional** `min-nextcloud-version`: Maximum PHP version, e.g. 'master' or '27'.## Usage
### Set up environment for unit tests
These tests only need the Nextcloud code and PHP.
```yaml
test-unit-matrix:
runs-on: ubuntu-latest
name: Matrix for test-unit
outputs:
matrix: ${{ steps.matrix.outputs.matrix }}
steps:
- uses: actions/checkout@v3
- uses: ./
id: matrix
with:
min-nextcloud-version: '26'
max-nextcloud-version: '27'
min-php-version: '8.1'
max-php-version: '8.2'
test-unit:
needs: test-unit-matrix
runs-on: ubuntu-latest
name: Unit test with NC=${{ matrix.nextcloudVersion }} PHP=${{ matrix.phpVersion }}
strategy:
matrix:
include: ${{ fromJSON(needs.test-unit-matrix.outputs.matrix) }}
steps:
- name: Set up Nextcloud env
uses: ChristophWurst/[email protected]
with:
nextcloud-version: ${{ matrix.nextcloudVersion }}
php-version: ${{ matrix.phpVersion }}
```