Skip to content

Commit

Permalink
Add pkp application name
Browse files Browse the repository at this point in the history
  • Loading branch information
withanage committed Nov 4, 2023
1 parent 8394c13 commit 2b5c394
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: OJS integration test
name: OMP integration test
on:
push:
branches:
Expand All @@ -9,18 +9,18 @@ on:
schedule:
- cron: '0 1 1 * *'
env:
APPLICATION: ojs
DBUSERNAME: ojs-ci
DBPASSWORD: ojs-ci
DBNAME: ojs-ci
APPLICATION: omp
DBUSERNAME: omp-ci
DBPASSWORD: omp-ci
DBNAME: omp-ci
DBHOST: 127.0.0.1
DATABASEDUMP: database.sql.gz
FILESDIR: files
FILESDUMP: files.tar.gz
CYPRESS_BASE_URL: http://127.0.0.1:8000
CYPRESS_DBNAME: ojs-ci
CYPRESS_DBUSERNAME: ojs-ci
CYPRESS_DBPASSWORD: ojs-ci
CYPRESS_DBNAME: omp-ci
CYPRESS_DBUSERNAME: omp-ci
CYPRESS_DBPASSWORD: omp-ci
CYPRESS_DBHOST: 127.0.0.1
CYPRESS_FILESDIR: files

Expand All @@ -33,7 +33,7 @@ jobs:
matrix:
php-versions: [ '8.1','8.2' ]
dbs: [ 'pgsql', 'mysql','mariadb']
pkp-application: [ 'ojs' ]
pkp-application: [ 'omp' ]
pkp-branch: [ '${{ github.head_ref || github.ref_name }}' ]
env:
DBTYPE: ${{matrix.dbs == 'pgsql' && 'PostgreSQL' || 'MySQLi'}}
Expand Down Expand Up @@ -113,6 +113,7 @@ jobs:
npx cypress run --headless --browser chrome --config '{"specPattern":["lib/pkp/cypress/tests/integration/**/*.cy.js"]}'
- name: Run cypress ${{matrix.pkp-application}} integration tests
if: ${{hashFiles('${{matrix.pkp-application}}/cypress/tests/integration/') != '' }}
run: |
cd ~/${{matrix.pkp-application}}
if [ -d "cypress/tests/integration" ]; then
Expand All @@ -128,5 +129,6 @@ jobs:
- name: Show failures log
if: ${{ failure() }}
run: |
cd ~/${{ matrix.pkp-application }}
cat access.log
tail -n 500 error.log
sudo apt-get install sharutils
find cypress/screenshots -type f -printf '%T+\t%p\n' | sort | head -n 1 | cut -f 2 | tar -czT - | uuencode /dev/stdout

0 comments on commit 2b5c394

Please sign in to comment.