Skip to content

Commit 341f62e

Browse files
feat: add run-tests workflow
1 parent 4df0264 commit 341f62e

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/run-tests.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Run tests
2+
on:
3+
push:
4+
paths:
5+
- "**.php"
6+
- "phpunit.xml"
7+
- "composer.json"
8+
- "composer.lock"
9+
10+
jobs:
11+
pest:
12+
name: Run tests
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Check out repository code
16+
uses: actions/checkout@v4
17+
18+
- name: Setup PHP
19+
uses: shivammathur/setup-php@v2
20+
with:
21+
php-version: 8.2
22+
tools: composer:v2
23+
coverage: none
24+
25+
- name: Install composer dependencies
26+
uses: nick-fields/retry@v2
27+
with:
28+
timeout_minutes: 3
29+
max_attempts: 5
30+
command: composer update --prefer-stable --prefer-dist --no-interaction --no-progress
31+
32+
- name: Run pest
33+
timeout-minutes: 2
34+
run: ./vendor/bin/pest

0 commit comments

Comments
 (0)