Skip to content

Commit f88fe68

Browse files
Create main.yml
1 parent 9da1be7 commit f88fe68

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# .github/workflows/main.yml
2+
name: Plugin CI
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
app-version:
13+
- '3.3.0'
14+
- 'stable-3_3_0'
15+
php-version:
16+
- '7.4'
17+
steps:
18+
- name: Checkout plugin
19+
uses: actions/checkout@v3
20+
- name: Setup OJS
21+
uses: pkp/pkp-github-actions/main@v0
22+
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+
34+
35+
- name: Run Cypress tests
36+
run: |
37+
npx cypress run --spec 'plugins/generic/ashSecurityHeaders/cypress/tests/*.cy.js'

0 commit comments

Comments
 (0)