Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!--
- Fill in the form below correctly. This will help the Pest team to understand the PR and also work on it.
-->

### What:

- [ ] Bug Fix
- [ ] New Feature

### Description:

<!-- describe what your PR is solving -->

### Related:

<!-- link to the issue(s) your PR is solving. If it doesn't exist, remove the "Related" section. -->
31 changes: 0 additions & 31 deletions .github/workflows/php-cs-fixer.yml

This file was deleted.

33 changes: 0 additions & 33 deletions .github/workflows/psalm.yml

This file was deleted.

30 changes: 13 additions & 17 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,27 @@
name: Run tests

on:
push:
pull_request:
paths:
- "**.php"
- "phpunit.xml"
- ".github/workflows/run-tests.yml"
- "composer.lock"
- "composer.json"

jobs:
php-tests:
runs-on: ${{ matrix.os }}

strategy:
matrix:
php: [7.4, 8.0]
laravel: [8.*]
php: [8.2, 8.3, 8.4]
laravel: [11.*]
dependency-version: [prefer-lowest, prefer-stable]
os: [ubuntu-latest]
include:
- laravel: 8.*
testbench: 6.*
- laravel: 11.*
testbench: 9.*

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

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

- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest

# - name: Execute tests
# run: vendor/bin/phpunit

- name: Send Slack notification
uses: 8398a7/action-slack@v2
if: failure()
with:
status: ${{ job.status }}
author_name: ${{ github.actor }}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}
- name: Execute tests
run: composer run-script test
14 changes: 0 additions & 14 deletions .pre-commit-config.yaml

This file was deleted.

154 changes: 0 additions & 154 deletions .scrutinizer.yml

This file was deleted.

1 change: 0 additions & 1 deletion .styleci.yml

This file was deleted.

20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Release Note for 1.x

## [v1.2.0](https://github.com/pwweb/Copper/compare/v1.1.0...v1.2.0) - 2025-02-12

* 🧑‍🔬 Add support for SI Units and Prefixes by [@rabrowne85](https://github.com/rabrowne85) in [#4](https://github.com/pwweb/Copper/pull/4)

## [v1.1.0](https://github.com/pwweb/Copper/compare/v1.0.1...v1.1.0) - 2023-08-16

* Apply fixes from StyleCI by [@rabrowne85](https://github.com/rabrowne85) in [#2](https://github.com/pwweb/Copper/pull/2)
* Add types to Copper
* Drop PHP 7.x support

## [v1.0.1](https://github.com/pwweb/Copper/compare/v1.0.0...v1.0.1) - 2021-01-15

* Correction to Precision for Decimals

## [v1.0.0](https://github.com/pwweb/Copper/compare/v1.0.0...v1.0.1) - 2021-01-15

* First release

51 changes: 51 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# CONTRIBUTING

Contributions are welcome, and are accepted via pull requests.
Please review these guidelines before submitting any pull requests.

## Process

1. Fork the project
2. Create a new branch
3. Code, test, commit and push
4. Open a pull request detailing your changes. Make sure to follow the [template](.github/PULL_REQUEST_TEMPLATE.md)

## Guidelines

* Please ensure the coding style running `composer lint`.
* Send a coherent commit history, making sure each individual commit in your pull request is meaningful.
* You may need to [rebase](https://git-scm.com/book/en/v2/Git-Branching-Rebasing) to avoid merge conflicts.
* Please remember that we follow [SemVer](http://semver.org/).

## Setup

Clone your fork, then install the dev dependencies:
```bash
composer install
```
## Lint

Lint your code:
```bash
composer lint
```
## Tests
Run all tests:
```bash
composer test
```

Check types:
```bash
composer test:type:check
```

Unit tests:
```bash
composer test:unit
```

Integration tests:
```bash
composer test:integration
```
Loading