Skip to content

Commit 3d03ebd

Browse files
committed
Update GitHub action
1 parent 6057531 commit 3d03ebd

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

.github/workflows/release.yml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,31 @@ on:
77
# Allows you to run this workflow manually from the Actions tab
88
workflow_dispatch:
99

10+
env:
11+
DATA_DIR: cypress/yaml
12+
CYPRESS_BASE_URL: "http://localhost:8181"
13+
1014
jobs:
15+
cypress-test:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v4
20+
- name: Composer
21+
uses: php-actions/composer@v6
22+
- name: npm build
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version: 23
26+
- run: npm ci
27+
- run: npm run build --if-present
28+
- name: Cypress run
29+
uses: cypress-io/github-action@v6
30+
with:
31+
start: composer run start
1132
release:
33+
needs: cypress-test
34+
if: github.ref_type == 'tag' && startsWith(github.ref_name, 'v')
1235
runs-on: ubuntu-latest
1336
steps:
1437
- uses: actions/checkout@master
@@ -17,7 +40,7 @@ jobs:
1740
- uses: actions/setup-node@v4
1841
with:
1942
node-version: 23
20-
- run: npm ci
43+
- run: npm ci --omit-dev
2144
- run: npm run build
2245
- name: build
2346
run: |

0 commit comments

Comments
 (0)