From fb8bfff8f4cb69b6a6458d21bbc2efd6bb0419a6 Mon Sep 17 00:00:00 2001 From: withanage Date: Mon, 29 Jul 2024 22:18:44 +0200 Subject: [PATCH] Add github actions support for stable-3_4_0 --- .github/actions/tests.sh | 5 +++ .github/workflows/stable-3_4_0.yml | 61 ++++++++++++++++++++++++++++++ .travis.yml | 50 ------------------------ 3 files changed, 66 insertions(+), 50 deletions(-) create mode 100755 .github/actions/tests.sh create mode 100644 .github/workflows/stable-3_4_0.yml delete mode 100644 .travis.yml diff --git a/.github/actions/tests.sh b/.github/actions/tests.sh new file mode 100755 index 0000000..42e72d8 --- /dev/null +++ b/.github/actions/tests.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +set -e + +npx cypress run --headless --browser chrome --config '{"specPattern":["cypress/tests/data/10-ApplicationSetup/{10-Installation,20-CreateContext}.cy.js","plugins/generic/customLocale/cypress/tests/functional/*.cy.{js,jsx,ts,tsx}"]}' \ No newline at end of file diff --git a/.github/workflows/stable-3_4_0.yml b/.github/workflows/stable-3_4_0.yml new file mode 100644 index 0000000..d03135d --- /dev/null +++ b/.github/workflows/stable-3_4_0.yml @@ -0,0 +1,61 @@ +on: [push, pull_request] +name: customLocale +jobs: + customLocale: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + include: + - application: ojs + php-version: 8.1 + database: mysql + - application: ojs + php-version: 8.2 + database: mysql + - application: ojs + php-version: 8.2 + database: pgsql + - application: ojs + php-version: 8.2 + database: pgsql + - application: omp + php-version: 8.1 + database: mysql + - application: omp + php-version: 8.2 + database: mysql + - application: omp + php-version: 8.2 + database: pgsql + - application: omp + php-version: 8.2 + database: pgsql + - application: ops + php-version: 8.1 + database: mysql + - application: ops + php-version: 8.2 + database: mysql + - application: ops + php-version: 8.2 + database: pgsql + - application: ops + php-version: 8.2 + database: pgsql + + name: customLocale + steps: + - uses: pkp/pkp-github-actions@v1 + with: + node_version: 16 + branch: stable-3_4_0 + repository: pkp + plugin: true + + + + + + + \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 47e09bc..0000000 --- a/.travis.yml +++ /dev/null @@ -1,50 +0,0 @@ -# @file -# .travis.yml - PKP Plugins Integration - -dist: focal -os: linux -language: php - -addons: - chrome: beta - postgresql: "9.5" - apt: - update: true - packages: - - libvulkan1 - - libu2f-udev - -sudo: required - -php: - - 8.0 - - 8.1.0 - -env: - - APPLICATION=ojs BRANCH=stable-3_4_0 TEST=mysql - - APPLICATION=ojs BRANCH=stable-3_4_0 TEST=pgsql - - APPLICATION=omp BRANCH=stable-3_4_0 TEST=mysql - - APPLICATION=omp BRANCH=stable-3_4_0 TEST=pgsql - - APPLICATION=ops BRANCH=stable-3_4_0 TEST=mysql - - APPLICATION=ops BRANCH=stable-3_4_0 TEST=pgsql - -install: - # Prepare OJS/OMP/OPS 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 --silent && npm run build - - ln -s ${TRAVIS_BUILD_DIR} ~/${APPLICATION}/plugins/generic/customLocale - -script: - - $(npm bin)/cypress run --headless --browser chrome --config '{"specPattern":["cypress/tests/data/10-ApplicationSetup/{10-Installation,20-CreateContext}.cy.js","plugins/generic/customLocale/cypress/tests/functional/*.cy.{js,jsx,ts,tsx}"]}' - -after_failure: - - cat error.log - - sudo apt-get install sharutils - - tar cz cypress/screenshots | uuencode /dev/stdout -