generated from kawax/arty
-
Notifications
You must be signed in to change notification settings - Fork 9
30 lines (28 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
name: test
on:
push:
pull_request:
types: [opened, synchronize]
jobs:
test:
name: test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@v2 #https://github.com/shivammathur/setup-php
with:
php-version: 8.3
extensions: mbstring, bcmath
coverage: xdebug
- name: Install Composer dependencies
run: composer install --no-interaction --no-progress --prefer-dist --optimize-autoloader -d ./update
- name: Test & publish code coverage
uses: paambaati/codeclimate-action@v5
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
workingDirectory: update/
coverageCommand: vendor/bin/phpunit
coverageLocations: build/logs/clover.xml:clover