From d5a571f5a2e573a695a8e239294d8feaf8d1f3f3 Mon Sep 17 00:00:00 2001
From: withanage <dulip.withanage@gmail.com>
Date: Sun, 28 Jul 2024 22:43:48 +0200
Subject: [PATCH 1/2] Add github actions support for stable-3_4_0

---
 .github/actions/tests.sh           |  8 ++++
 .github/workflows/stable-3_4_0.yml | 62 ++++++++++++++++++++++++++++++
 .travis.yml                        | 61 -----------------------------
 3 files changed, 70 insertions(+), 61 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..487a765
--- /dev/null
+++ b/.github/actions/tests.sh
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+set -e
+
+
+npx cypress run --headless --browser chrome --config '{"specPattern":["plugins/generic/webFeed/cypress/tests/functional/*.cy.{js,jsx,ts,tsx}"]}'
+
+
diff --git a/.github/workflows/stable-3_4_0.yml b/.github/workflows/stable-3_4_0.yml
new file mode 100644
index 0000000..c2d3e59
--- /dev/null
+++ b/.github/workflows/stable-3_4_0.yml
@@ -0,0 +1,62 @@
+on: [push, pull_request]
+name: webFeed
+jobs:
+  webFeed:
+    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: webFeed
+    steps:
+      - uses: xmlFlow/pkp-github-actions@v1
+        with:
+         node_version: 16
+         branch: stable-3_4_0
+         repository: pkp
+         plugin: true
+         dataset_inject: true
+
+
+
+
+
+
+     
\ No newline at end of file
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index 22b634d..0000000
--- a/.travis.yml
+++ /dev/null
@@ -1,61 +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.1.0
-  - 8.2.0
-
-env:
-  - APPLICATION=ojs BRANCH=stable-3_4_0 TEST=mysql DBTYPE=MySQL
-  - APPLICATION=ojs BRANCH=stable-3_4_0 TEST=pgsql DBTYPE=PostgreSQL
-  - APPLICATION=omp BRANCH=stable-3_4_0 TEST=mysql DBTYPE=MySQL
-  - APPLICATION=omp BRANCH=stable-3_4_0 TEST=pgsql DBTYPE=PostgreSQL
-  - APPLICATION=ops BRANCH=stable-3_4_0 TEST=mysql DBTYPE=MySQL
-  - APPLICATION=ops BRANCH=stable-3_4_0 TEST=pgsql DBTYPE=PostgreSQL
-
-install:
-  # Prepare OJS/OMP/OPS environment
-  - git clone -b ${BRANCH} https://github.com/pkp/${APPLICATION} ~/${APPLICATION}
-  - cd ~/${APPLICATION}
-  - git submodule update --init --recursive
-  # Grab a ready dataset
-  - git clone -b main https://github.com/pkp/datasets ~/datasets
-  # Setup environment variables
-  - source lib/pkp/tools/travis/prepare-tests.sh
-  # The script below requires these extra variables
-  - export DBTYPE_SYMBOLIC=${TEST}
-  - export APP=${APPLICATION}
-  # Load the database/files from the dataset
-  - ../datasets/tools/load.sh
-  # Undo configuration update from the load.sh
-  - sed -i -e "s/^name = ${APP}-${BRANCH}$/name = ${APP}-ci/" config.inc.php
-  # Start the server
-  - 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
-  - rm -rf ~/${APPLICATION}/plugins/generic/webFeed
-  - ln -s ${TRAVIS_BUILD_DIR} ~/${APPLICATION}/plugins/generic/webFeed
-
-script:
-  - $(npm bin)/cypress run --headless --browser chrome --config '{"specPattern":["plugins/generic/webFeed/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

From e58245a9e38ebed096cc8d83a6b36ee87e96c3bd Mon Sep 17 00:00:00 2001
From: withanage <dulip.withanage@gmail.com>
Date: Mon, 29 Jul 2024 22:19:15 +0200
Subject: [PATCH 2/2] Add github actions support for stable-3_4_0

---
 .github/workflows/stable-3_4_0.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.github/workflows/stable-3_4_0.yml b/.github/workflows/stable-3_4_0.yml
index c2d3e59..a94f6b7 100644
--- a/.github/workflows/stable-3_4_0.yml
+++ b/.github/workflows/stable-3_4_0.yml
@@ -46,7 +46,7 @@ jobs:
 
     name: webFeed
     steps:
-      - uses: xmlFlow/pkp-github-actions@v1
+      - uses: pkp/pkp-github-actions@v1
         with:
          node_version: 16
          branch: stable-3_4_0