Skip to content

Commit 6b6b215

Browse files
authored
Fix github action for testing the PHP SDK (#40)
1 parent f2756af commit 6b6b215

File tree

3 files changed

+1303
-3
lines changed

3 files changed

+1303
-3
lines changed

.github/workflows/php-package.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ jobs:
1414
steps:
1515
- uses: actions/checkout@v3
1616
- uses: actions/setup-node@v3
17-
- name: Install Prism
18-
run: (yarn global add @stoplight/prism-cli)
1917
- name: Start Prism Server
20-
run: (prism mock -h 127.0.0.1 openapi.json &)
18+
run: |
19+
yarn install
20+
./node_modules/.bin/prism mock -h 127.0.0.1 openapi.json &
2121
- name: Validate composer.json and composer.lock
2222
run: composer validate
2323
- name: Cache Composer packages

package.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"dependencies": {
3+
"@stoplight/prism-cli": "5.6.0"
4+
},
5+
"resolutions": {
6+
"@stoplight/json": "3.20.0"
7+
}
8+
}

0 commit comments

Comments
 (0)