Skip to content

Commit

Permalink
Add github actions support for main
Browse files Browse the repository at this point in the history
  • Loading branch information
withanage committed Jul 29, 2024
1 parent 4cbe968 commit 45c86e5
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 51 deletions.
9 changes: 9 additions & 0 deletions .github/actions/tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

set -e

npx cypress run --spec "cypress/tests/data/10-Installation.spec.js,cypress/tests/data/20-CreateContext.spec.js"

npx cypress run --headless --browser chrome --config '{"specPattern":["plugins/generic/customHeader/cypress/tests/functional/*.cy.js"]}'


54 changes: 54 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
on: [push]
name: customHeader
jobs:
customHeader:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- application: ojs
php-version: 8.3
database: mysql
- application: ojs
php-version: 8.2
database: mysql
- application: ojs
php-version: 8.3
database: pgsql
- application: ojs
php-version: 8.2
database: pgsql
- application: omp
php-version: 8.3
database: mysql
- application: omp
php-version: 8.2
database: mysql
- application: omp
php-version: 8.3
database: pgsql
- application: omp
php-version: 8.2
database: pgsql
- application: ops
php-version: 8.3
database: mysql
- application: ops
php-version: 8.2
database: mysql
- application: ops
php-version: 8.3
database: pgsql
- application: ops
php-version: 8.2
database: pgsql

name: customHeader
steps:
- uses: xmlFlow/pkp-github-actions@v1
with:
node_version: 20
branch: main
repository: pkp
plugin: true
51 changes: 0 additions & 51 deletions .travis.yml

This file was deleted.

0 comments on commit 45c86e5

Please sign in to comment.