Skip to content

Commit 96b4ca8

Browse files
committed
Add GitHub Actions workflow
1 parent 592c309 commit 96b4ca8

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

.github/workflows/tests.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- "*.x"
8+
pull_request:
9+
schedule:
10+
- cron: "0 0 * * *"
11+
12+
permissions:
13+
contents: read
14+
15+
jobs:
16+
tests:
17+
runs-on: ubuntu-latest
18+
19+
strategy:
20+
fail-fast: true
21+
matrix:
22+
php: [8.2, 8.3, 8.4]
23+
24+
name: PHP ${{ matrix.php }}
25+
26+
steps:
27+
- name: Checkout code
28+
uses: actions/checkout@v4
29+
30+
- name: Setup PHP
31+
uses: shivammathur/setup-php@v2
32+
with:
33+
php-version: ${{ matrix.php }}
34+
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite
35+
coverage: none
36+
37+
- name: Install Composer dependencies
38+
run: composer install --prefer-dist --no-interaction --no-progress
39+
40+
- name: Clear caches
41+
run: |
42+
rm -rf .phpunit.cache
43+
continue-on-error: true
44+
45+
- name: Check Pest installation
46+
run: ls -la vendor/bin/ && cat vendor/bin/pest
47+
48+
- name: Execute tests
49+
run: cd $GITHUB_WORKSPACE && vendor/bin/pest tests

0 commit comments

Comments
 (0)