From 511a562cbedd8b6d76cd4e49b362b0ee47f4ee10 Mon Sep 17 00:00:00 2001 From: withanage Date: Mon, 29 Jul 2024 22:19:10 +0200 Subject: [PATCH] Add github actions support for stable-3_3_0 --- .github/workflows/stable-3_3_0.yml | 38 +++++++++++++++++++++++++++ .travis.yml | 42 ------------------------------ 2 files changed, 38 insertions(+), 42 deletions(-) create mode 100644 .github/workflows/stable-3_3_0.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/stable-3_3_0.yml b/.github/workflows/stable-3_3_0.yml new file mode 100644 index 0000000..cccfb1c --- /dev/null +++ b/.github/workflows/stable-3_3_0.yml @@ -0,0 +1,38 @@ +on: [push, pull_request] +name: staticpages +jobs: + staticpages: + 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: staticpages + 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 734a883..0000000 --- a/.travis.yml +++ /dev/null @@ -1,42 +0,0 @@ -# @file -# .travis.yml - PKP Plugins Integration - -dist: bionic -language: php - -addons: - postgresql: "9.5" - apt: - update: true - -sudo: required - -php: - - 7.3 - - 7.4 - - 8.0 -env: - - APPLICATION=ojs BRANCH=stable-3_3_0 TEST=mysql - - APPLICATION=ojs BRANCH=stable-3_3_0 TEST=pgsql - - APPLICATION=omp BRANCH=stable-3_3_0 TEST=mysql - - APPLICATION=omp BRANCH=stable-3_3_0 TEST=pgsql - - APPLICATION=ops BRANCH=stable-3_3_0 TEST=mysql - - APPLICATION=ops BRANCH=stable-3_3_0 TEST=pgsql - -install: - # Prepare OJS/OMP 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 - # Make sure we're using the current checkout of this repo rather than the built-in OJS/OMP version - - rm -rf ~/${APPLICATION}/plugins/generic/staticPages - - ln -s ${TRAVIS_BUILD_DIR} ~/${APPLICATION}/plugins/generic/staticPages - # Install OJS/OMP & prep data environment - - $(npm bin)/cypress run --spec "cypress/tests/data/10-Installation.spec.js,cypress/tests/data/20-CreateContext.spec.js" -script: - - $(npm bin)/cypress run --config integrationFolder=plugins/generic/staticPages/cypress/tests