diff --git a/.github/actions/tests.sh b/.github/actions/tests.sh new file mode 100755 index 0000000..d7e20fa --- /dev/null +++ b/.github/actions/tests.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +set -e +npx cypress run --spec "cypress/tests/data/*.spec.js,cypress/tests/data/60-content/VkarbasizaedSubmission.spec.js" +npx cypress run --config integrationFolder=plugins/themes/classic/cypress/tests/functional + diff --git a/.github/workflows/stable-3_3_0.yml b/.github/workflows/stable-3_3_0.yml new file mode 100644 index 0000000..ff478f8 --- /dev/null +++ b/.github/workflows/stable-3_3_0.yml @@ -0,0 +1,38 @@ +on: [push, pull_request] +name: classic +jobs: + classic: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + include: + - application: ojs + php-version: 7.4 + database: mysql + - application: ojs + php-version: 8.0 + database: mysql + - application: ojs + php-version: 7.4 + database: pgsql + - application: ojs + php-version: 8.0 + database: pgsql + + name: classic + steps: + - uses: pkp/pkp-github-actions@v1 + with: + node_version: 12 + branch: stable-3_3_0 + repository: pkp + plugin: true + + + + + + + + diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 02d7786..0000000 --- a/.travis.yml +++ /dev/null @@ -1,44 +0,0 @@ -# @file -# .travis.yml - PKP Plugins Integration - -dist: bionic -os: linux -language: php - -addons: - postgresql: "9.5" - apt: - update: true - -sudo: required - -php: - - 7.3 - - 7.4 - - 8.0 - - 8.1.0 -env: - - APPLICATION=ojs BRANCH=stable-3_3_0 TEST=mysql - - APPLICATION=ojs BRANCH=stable-3_3_0 TEST=pgsql - -install: - # Prepare OJS environment - - git clone -b ${BRANCH} https://github.com/pkp/${APPLICATION} ~/${APPLICATION} - - cd ~/${APPLICATION} - - git submodule update --init --recursive - - source lib/pkp/tools/travis/prepare-tests.sh - - lib/pkp/tools/travis/prepare-webserver.sh - # Build/install dependencies - - lib/pkp/tools/travis/install-composer-dependencies.sh - - npm i g -npm && npm install && npm run build - - ln -s ${TRAVIS_BUILD_DIR} ~/${APPLICATION}/plugins/themes/classic - # Install OJS & prep data environment - - $(npm bin)/cypress run --spec "cypress/tests/data/*.spec.js,cypress/tests/data/60-content/VkarbasizaedSubmission.spec.js" - -script: - - $(npm bin)/cypress run --config integrationFolder=plugins/themes/classic/cypress/tests/functional - -after_failure: - - cat error.log - - sudo apt-get install sharutils - - tar cz cypress/screenshots | uuencode /dev/stdout