Skip to content

Commit dc82e1d

Browse files
Add check workflow for PR testing (#8)
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: Max Prilutskiy <[email protected]>
1 parent 7396a12 commit dc82e1d

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/check.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: PHP SDK Tests
2+
3+
on:
4+
pull_request_target:
5+
branches:
6+
- main
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v3
14+
with:
15+
ref: ${{ github.event.pull_request.head.sha }}
16+
17+
- name: Setup PHP
18+
uses: shivammathur/setup-php@v2
19+
with:
20+
php-version: '8.1'
21+
extensions: mbstring, intl
22+
coverage: none
23+
tools: composer:v2
24+
25+
- name: Validate composer.json
26+
run: composer validate --strict
27+
28+
- name: Install dependencies
29+
run: composer install --prefer-dist
30+
31+
- name: Run tests
32+
run: vendor/bin/phpunit tests/

0 commit comments

Comments
 (0)