File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ set -e
4+
5+ npx cypress run --headless --browser chrome --config ' {"specPattern":["plugins/generic/pluginTemplate/cypress/tests/functional/*.cy.js"]}'
6+
7+
Original file line number Diff line number Diff line change 1- # .github/workflows/main.yml
2- name : Plugin CI
3- on : [push, pull_request]
4-
1+ on : [push]
2+ name : pluginTemplate
53jobs :
6- test :
4+ pluginTemplate :
75 runs-on : ubuntu-latest
8-
96 strategy :
107 fail-fast : false
118 matrix :
12- app-version :
13- - ' 3.3.0'
14- - ' stable-3_3_0'
15- php-version :
16- - ' 7.4'
9+ include :
10+ - application : ojs
11+ php-version : 8.3
12+ database : mysql
13+ - application : ojs
14+ php-version : 8.2
15+ database : mysql
16+ - application : ojs
17+ php-version : 8.3
18+ database : pgsql
19+ - application : ojs
20+ php-version : 8.2
21+ database : pgsql
22+
23+ name : pluginTemplate
1724 steps :
18- - name : Checkout plugin
19- uses : actions/checkout@v3
20- - name : Setup OJS
21- uses : pkp/pkp-github-actions/main@v0
25+ - uses : pkp/pkp-github-actions@v1
2226 with :
23- app : ojs
24- app-version : ${{ matrix.app-version }}
25- php-version : ${{ matrix.php-version }}
26- plugin-name : ashSecurityHeaders
27- run : |
28-
29- - name : Calculate MD5 Hash
30- run : |
31- echo "Calculating MD5 hash for the release package..."
32- md5sum releases/ashSecurityHeaders*.tar.gz
33-
27+ node_version : 20
28+ branch : main
29+ repository : pkp
30+ plugin : true
3431
35- - name : Run Cypress tests
36- run : |
37- npx cypress run --spec 'plugins/generic/ashSecurityHeaders/cypress/tests/*.cy.js'
You can’t perform that action at this time.
0 commit comments