Milestone 6: schema.org metadata, raw-fields lock, multi-feature highlight, and more #64
Workflow file for this run
This file contains hidden or 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
| # @file .github/workflows/integration_tests.yml | |
| # | |
| # Copyright (c) 2025 KOMET project, OPTIMETA project, Daniel Nüst, Tom Niers | |
| # Distributed under the GNU GPL v3. For full terms see the file LICENSE. | |
| # | |
| # Based on https://github.com/o2r-project/ojs-erc-plugin/blob/master/.github/workflows/cypress_test.yml. | |
| name: geoMetadata CI Test | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - dev | |
| pull_request: | |
| branches: | |
| - main | |
| - dev | |
| jobs: | |
| geoMetadata: | |
| name: ${{ matrix.pkp-application }} version ${{ matrix.pkp-version }} with ${{ matrix.dbs }} | |
| runs-on: ubuntu-22.04 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| dbs: [ | |
| #'pgsql', | |
| "mysql", | |
| ] | |
| pkp-application: ["ojs"] | |
| #'omp', | |
| #'ops' | |
| pkp-version: [ | |
| # "3_2_1-4" or "stable-3_2_1" # > installation does not work in Cypress, but manually it does | |
| # PHP 8.1 image — required by spatie/schema-org which needs PHP ^8.0. | |
| "3_3_0-16-php8.1-mod-250824.0309", | |
| ] | |
| env: | |
| OJS_VERSION: ${{ matrix.pkp-version }} | |
| steps: | |
| - name: Pre-pull images | |
| run: | | |
| docker pull pkpofficial/ojs:${{ matrix.pkp-version }} | |
| docker pull mariadb:10.2 | |
| docker pull cypress/included:10.2.0 | |
| - name: Install msgfmt | |
| run: | | |
| sudo apt-get -qq update | |
| sudo apt-get -qq install gettext | |
| - name: Install npm | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - name: Install PHP | |
| uses: "shivammathur/setup-php@v2" | |
| with: | |
| php-version: "7.4" | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install composer | |
| uses: "ramsey/composer-install@v3" | |
| - name: Install plugin dependencies | |
| run: | | |
| composer update | |
| - name: Install test dependencies | |
| run: | | |
| npm install | |
| - name: Start OJS and database | |
| run: | | |
| docker compose --file cypress/docker-compose-${{ matrix.dbs }}.yml up -d | |
| - name: Run Cypress | |
| run: | | |
| npx cypress run --headless --browser chrome | |
| - name: Show logs | |
| if: ${{ failure() }} | |
| run: | | |
| docker logs db | |
| docker logs ojs | |
| cat cypress/logs/*.log | |
| - name: Upload screenshots | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: screenshots for ${{ matrix.pkp-application }} with ${{ matrix.dbs }} | |
| path: | | |
| ${{ github.workspace }}/cypress/screenshots | |
| - name: Upload videos | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: videos for ${{ matrix.pkp-application }} with ${{ matrix.dbs }} | |
| path: | | |
| ${{ github.workspace }}/cypress/videos |