-
Notifications
You must be signed in to change notification settings - Fork 6
32 lines (26 loc) · 864 Bytes
/
ci.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
name: CI
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- php_version: 8.1
- php_version: 8.2
- php_version: 8.3
code_coverage: upload
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 2 # Required by Scrutinizer (Ocular)
- name: Set up Docker Compose
run: sudo apt-get update && sudo apt-get install -y docker-compose
- name: Run tests
run: ./test.sh ${{ matrix.php_version }} ${{ matrix.code_coverage }}
- name: Upload Scrutinizer coverage
uses: sudo-bot/action-scrutinizer@latest
if: github.repository == 'mindplay-dk/sql' && matrix.code_coverage == 'upload'
with:
cli-args: "--format=php-clover test/build/clover.xml"