-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (38 loc) · 908 Bytes
/
ci.yml
File metadata and controls
44 lines (38 loc) · 908 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
name: CI
on:
workflow_dispatch:
push:
branches:
- master
paths:
- "**.php"
- "phpunit.xml"
pull_request:
paths:
- "**.php"
- "phpunit.xml"
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Install composer and dependencies
uses: php-actions/composer@v6
with:
php_version: "8.1"
- name: PHPUnit Tests
uses: php-actions/phpunit@v4
env:
XDEBUG_MODE: coverage
with:
php_extensions: "xdebug"
coverage_clover: "./clover.xml"
testsuite: "All"
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: shimoning/encryption-php
files: ./clover.xml
verbose: true