Skip to content

Commit 36ee1a7

Browse files
authored
Merge pull request #4 from pwweb/feat/add-si-unit-format
πŸ§‘β€πŸ”¬ Add support for SI Units and Prefixes
2 parents 214dc94 + c01fdf8 commit 36ee1a7

27 files changed

+731
-480
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<!--
2+
- Fill in the form below correctly. This will help the Pest team to understand the PR and also work on it.
3+
-->
4+
5+
### What:
6+
7+
- [ ] Bug Fix
8+
- [ ] New Feature
9+
10+
### Description:
11+
12+
<!-- describe what your PR is solving -->
13+
14+
### Related:
15+
16+
<!-- link to the issue(s) your PR is solving. If it doesn't exist, remove the "Related" section. -->

β€Ž.github/workflows/php-cs-fixer.ymlβ€Ž

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

β€Ž.github/workflows/psalm.ymlβ€Ž

Lines changed: 0 additions & 33 deletions
This file was deleted.
Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,27 @@
11
name: Run tests
22

33
on:
4-
push:
54
pull_request:
5+
paths:
6+
- "**.php"
7+
- "phpunit.xml"
8+
- ".github/workflows/run-tests.yml"
9+
- "composer.lock"
10+
- "composer.json"
611

712
jobs:
813
php-tests:
914
runs-on: ${{ matrix.os }}
1015

1116
strategy:
1217
matrix:
13-
php: [7.4, 8.0]
14-
laravel: [8.*]
18+
php: [8.2, 8.3, 8.4]
19+
laravel: [11.*]
1520
dependency-version: [prefer-lowest, prefer-stable]
1621
os: [ubuntu-latest]
1722
include:
18-
- laravel: 8.*
19-
testbench: 6.*
23+
- laravel: 11.*
24+
testbench: 9.*
2025

2126
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ${{ matrix.os }}
2227

@@ -29,21 +34,12 @@ jobs:
2934
with:
3035
php-version: ${{ matrix.php }}
3136
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
32-
coverage: none
37+
coverage: pcov
3338

3439
- name: Install dependencies
3540
run: |
3641
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
3742
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
3843
39-
# - name: Execute tests
40-
# run: vendor/bin/phpunit
41-
42-
- name: Send Slack notification
43-
uses: 8398a7/action-slack@v2
44-
if: failure()
45-
with:
46-
status: ${{ job.status }}
47-
author_name: ${{ github.actor }}
48-
env:
49-
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}
44+
- name: Execute tests
45+
run: composer run-script test

β€Ž.pre-commit-config.yamlβ€Ž

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

β€Ž.scrutinizer.ymlβ€Ž

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

β€Ž.styleci.ymlβ€Ž

Lines changed: 0 additions & 1 deletion
This file was deleted.

β€ŽCHANGELOG.mdβ€Ž

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Release Note for 1.x
2+
3+
## [v1.2.0](https://github.com/pwweb/Copper/compare/v1.1.0...v1.2.0) - 2025-02-12
4+
5+
* πŸ§‘β€πŸ”¬ Add support for SI Units and Prefixes by [@rabrowne85](https://github.com/rabrowne85) in [#4](https://github.com/pwweb/Copper/pull/4)
6+
7+
## [v1.1.0](https://github.com/pwweb/Copper/compare/v1.0.1...v1.1.0) - 2023-08-16
8+
9+
* Apply fixes from StyleCI by [@rabrowne85](https://github.com/rabrowne85) in [#2](https://github.com/pwweb/Copper/pull/2)
10+
* Add types to Copper
11+
* Drop PHP 7.x support
12+
13+
## [v1.0.1](https://github.com/pwweb/Copper/compare/v1.0.0...v1.0.1) - 2021-01-15
14+
15+
* Correction to Precision for Decimals
16+
17+
## [v1.0.0](https://github.com/pwweb/Copper/compare/v1.0.0...v1.0.1) - 2021-01-15
18+
19+
* First release
20+

β€ŽCONTRIBUTING.mdβ€Ž

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# CONTRIBUTING
2+
3+
Contributions are welcome, and are accepted via pull requests.
4+
Please review these guidelines before submitting any pull requests.
5+
6+
## Process
7+
8+
1. Fork the project
9+
2. Create a new branch
10+
3. Code, test, commit and push
11+
4. Open a pull request detailing your changes. Make sure to follow the [template](.github/PULL_REQUEST_TEMPLATE.md)
12+
13+
## Guidelines
14+
15+
* Please ensure the coding style running `composer lint`.
16+
* Send a coherent commit history, making sure each individual commit in your pull request is meaningful.
17+
* You may need to [rebase](https://git-scm.com/book/en/v2/Git-Branching-Rebasing) to avoid merge conflicts.
18+
* Please remember that we follow [SemVer](http://semver.org/).
19+
20+
## Setup
21+
22+
Clone your fork, then install the dev dependencies:
23+
```bash
24+
composer install
25+
```
26+
## Lint
27+
28+
Lint your code:
29+
```bash
30+
composer lint
31+
```
32+
## Tests
33+
Run all tests:
34+
```bash
35+
composer test
36+
```
37+
38+
Check types:
39+
```bash
40+
composer test:type:check
41+
```
42+
43+
Unit tests:
44+
```bash
45+
composer test:unit
46+
```
47+
48+
Integration tests:
49+
```bash
50+
composer test:integration
51+
```

0 commit comments

Comments
Β (0)