-
Notifications
You must be signed in to change notification settings - Fork 30
37 lines (35 loc) · 914 Bytes
/
build.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
name: Build
on:
pull_request:
branches:
- "**"
push:
branches:
- master
- develop
tags:
- "*"
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: [8.2]
steps:
- name: Checkout repository
uses: actions/[email protected]
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
extensions: mbstring, json, curl, pcov
coverage: pcov
- name: Install dependencies
run: composer install --no-interaction --no-progress --prefer-dist
- name: Run PHPUnit tests
run: vendor/bin/phpunit --coverage-clover build/logs/clover.xml
- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}