Skip to content

Commit ef79e61

Browse files
Add files via upload
1 parent f88fe68 commit ef79e61

2 files changed

Lines changed: 30 additions & 29 deletions

File tree

.github/actions/tests.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
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+

.github/workflows/main.yml

Lines changed: 23 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,31 @@
1-
# .github/workflows/main.yml
2-
name: Plugin CI
3-
on: [push, pull_request]
4-
1+
on: [push]
2+
name: pluginTemplate
53
jobs:
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'

0 commit comments

Comments
 (0)