-
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (33 loc) · 1.04 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Test
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
php: ['8.2']
name: PHP ${{ matrix.php }}
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Set up PHP ${{ matrix.php }}
run: sudo update-alternatives --set php /usr/bin/php${{ matrix.php }}
- name: Update Composer to latest version
run: sudo composer self-update
- name: Validate composer.json
run: composer validate
- name: Install Composer dependencies
run: |
composer install --no-interaction
- name: Run tests
run: |
composer test-coverage
- name: Upload coverage results to Coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: nick-fields/retry@v2
with:
timeout_minutes: 10
max_attempts: 3
command: vendor-bin/php-coveralls/vendor/bin/php-coveralls --coverage_clover=build/logs/clover.xml