further refinements regarding manually maintained ontologies #36
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Continuous Integration | |
on: [push, pull_request] | |
jobs: | |
CI: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Git repository | |
uses: actions/checkout@v3 | |
- name: Install PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
ini-values: memory_limit=1G | |
tools: cs2pr | |
# Validate composer.json | |
- name: Validate Composer files | |
run: cd scripts && composer validate --no-check-all --strict | |
# Setup PHP environment (install dependencies etc.) | |
- name: Install Composer dependencies | |
run: cd scripts && composer install --no-progress --no-suggest --prefer-dist --optimize-autoloader | |
# Static code analyser | |
- name: Static Code Analysis | |
run: cd scripts && vendor/bin/phpstan analyse | |
# Tests | |
- name: Tests | |
run: cd scripts && vendor/bin/phpunit | |
# CSV linter | |
- name: Lint index.csv | |
uses: kcheriyath/csvlinter@V0.6.0 | |
with: | |
file_list: "index.csv" | |
find_pattern: "*.csv" | |
find_path: "./" | |
fail_on_error: "true" |