Skip to content

Commit c37099f

Browse files
Attempt to fix coverage badge
1 parent 07a6b35 commit c37099f

File tree

3 files changed

+37
-4
lines changed

3 files changed

+37
-4
lines changed

.coveralls.yml

Lines changed: 0 additions & 3 deletions
This file was deleted.

.github/workflows/coverage.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Coverage Check
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
coverage:
11+
name: PHPUnit Coverage Check
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
18+
- name: Setup PHP
19+
uses: shivammathur/setup-php@v2
20+
with:
21+
php-version: '8.4'
22+
extensions: mbstring, intl, sodium
23+
ini-values: error_reporting=-1, display_errors=On
24+
coverage: xdebug
25+
26+
- name: Install Composer dependencies
27+
uses: "ramsey/composer-install@v3"
28+
29+
- name: PHPUnit tests with coverage
30+
run: vendor/bin/phpunit --coverage-clover build/logs/clover.xml
31+
32+
- name: Check for 100% coverage
33+
uses: michaelpetri/[email protected]
34+
with:
35+
clover-file: build/logs/clover.xml
36+
min-coverage: 100

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[![Latest Unstable Version](https://poser.pugx.org/paragonie/halite/v/unstable)](https://packagist.org/packages/paragonie/halite)
77
[![License](https://poser.pugx.org/paragonie/halite/license)](https://packagist.org/packages/paragonie/halite)
88
[![Downloads](https://img.shields.io/packagist/dt/paragonie/halite.svg)](https://packagist.org/packages/paragonie/halite)
9-
[![Coverage Status](https://coveralls.io/repos/github/paragonie/halite/badge.svg?branch=master)](https://coveralls.io/github/paragonie/halite?branch=master)
9+
[![Coverage Status](https://github.com/paragonie/halite/actions/workflows/coverage.yml/badge.svg)](https://github.com/paragonie/halite/actions/workflows/coverage.yml)
1010

1111
**Halite** is a high-level cryptography interface that relies on [libsodium](https://pecl.php.net/package/libsodium)
1212
for all of its underlying cryptography operations.

0 commit comments

Comments
 (0)