-
Notifications
You must be signed in to change notification settings - Fork 22
41 lines (39 loc) · 1.15 KB
/
run-tests.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
name: Run tests on all branches
on:
pull_request:
push:
branches:
- '*' # Run on all branches
jobs:
test:
name: PHP ${{ matrix.php }}
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: false
matrix:
php: ['8.2']
experimental: [false]
steps:
- uses: actions/checkout@v3
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
- uses: actions/cache@v4
with:
path: ~/.composer/cache/files
key: php${{ matrix.php }}-${{ hashFiles('**/composer.lock') }}
restore-keys: php${{ matrix.php }}-
- run: composer install --prefer-dist --optimize-autoloader --no-interaction --no-progress
- run: composer test
- name: Upload test coverage
uses: actions/upload-artifact@v4
with:
name: test-coverage
path: coverage/
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
file: ./coverage.xml
token: ${{ secrets.CODECOV_TOKEN }}
slug: Attestto-com/solana-php-sdk