-
Notifications
You must be signed in to change notification settings - Fork 17
33 lines (27 loc) · 917 Bytes
/
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
name: "Tests"
on: [pull_request]
jobs:
lint:
name: Tests ${{ matrix.php-versions }}
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: ['8.1', '8.2', '8.3', 'nightly']
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup PHP ${{ matrix.php-versions }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
- name: Validate composer.json and composer.lock
run: composer validate --strict
- name: Compose install
run: composer install --ignore-platform-reqs
- name: Run tests
run: |
export TEST_SENTRY_DSN=${{ secrets.TEST_SENTRY_DSN }}
export TEST_APPSIGNAL_KEY=${{ secrets.TEST_APPSIGNAL_KEY }}
export TEST_LOGOWL_KEY=${{ secrets.TEST_LOGOWL_KEY }}
export TEST_RAYGUN_KEY=${{ secrets.TEST_RAYGUN_KEY }}
composer test