-
-
Notifications
You must be signed in to change notification settings - Fork 3
48 lines (39 loc) · 978 Bytes
/
ci.yml
File metadata and controls
48 lines (39 loc) · 978 Bytes
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
44
45
46
47
48
name: CI
on:
pull_request:
push:
branches:
- main
- master
- 'release/*'
jobs:
build:
name: Build
runs-on: ubuntu-latest
env:
COMPOSER_HOME: ./.composer
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Test
run: make test
- name: Process test reports
id: report
run: make process-reports
env:
SONAR_ENABLED: ${{ !!secrets.SONAR_TOKEN }}
if: ${{ env.SONAR_ENABLED == 'true' }}
- name: Build Phar
run: make compile
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: mtxpc.phar
path: ${{ github.workspace }}/build/mtxpc.phar
- name: SonarQube Scan
uses: SonarSource/sonarqube-scan-action@v6
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
if: ${{ steps.report.conclusion == 'success' }}