-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (33 loc) · 1.11 KB
/
tests.yaml
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
name: Tests
on:
push:
pull_request:
schedule:
- cron: '0 8 * * *'
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: [ '8.2', '8.3' ]
composer-flags: [ '', '--prefer-lowest' ]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build the image
run: dev/bin/docker-compose build --build-arg PHP_VERSION=${{ matrix.php }} php
- name: Install the dependencies
run: dev/bin/php composer update --ansi --prefer-dist ${{ matrix.composer-flags }}
- name: Run the tests
run: dev/bin/php-test composer test -- --colors=always --coverage-clover=coverage.xml --debug
- name: Check coding standards
run: dev/bin/php composer lint -- --ansi --diff --dry-run --using-cache=no --verbose
- name: Clear docker volumes
if: ${{ always() }}
run: dev/bin/docker-compose down --volumes
- name: Upload coverage to Codecov
if: ${{ success() }}
uses: codecov/codecov-action@v2
with:
file: coverage.xml