Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: K-Adam/php-env-editor
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1.0.0
Choose a base ref
...
head repository: K-Adam/php-env-editor
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
  • 9 commits
  • 30 files changed
  • 1 contributor

Commits on Jun 5, 2022

  1. Update PHP version to 8.0

    K-Adam committed Jun 5, 2022
    Copy the full SHA
    154195c View commit details
  2. Copy the full SHA
    0a21390 View commit details
  3. Reformat code

    K-Adam committed Jun 5, 2022
    Copy the full SHA
    1b0cd5a View commit details
  4. Refactor EOL detection

    K-Adam committed Jun 5, 2022
    Copy the full SHA
    736e7a2 View commit details
  5. Generate coverage report

    K-Adam committed Jun 5, 2022
    Copy the full SHA
    cd626eb View commit details
  6. Copy the full SHA
    a89e6c5 View commit details
  7. Refactor EOL Type detection

    K-Adam committed Jun 5, 2022
    Copy the full SHA
    29bffca View commit details
  8. Minor Composer & test refactoring

    Override EOL
    K-Adam committed Jun 5, 2022
    Copy the full SHA
    b1ca768 View commit details
  9. Minor: Fix dirname & comment

    K-Adam committed Jun 5, 2022
    Copy the full SHA
    894855d View commit details
14 changes: 14 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = space
insert_final_newline = true
max_line_length = 120
tab_width = 4

[{*.yml, *.yaml}]
indent_size = 2
tab_width = 2
28 changes: 15 additions & 13 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,27 @@
name: PHPUnit

on: [push]
on: [ push ]

jobs:
test:
strategy:
matrix:
php-version:
- '8.0'
- '8.1'

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.2'

- name: Validate composer.json and composer.lock
run: composer validate
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}

- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest

- name: Run tests
run: composer run-script test
- name: Run tests
run: composer run-script test
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/vendor
composer.lock

.idea
*.bak

.phpunit.result.cache
19 changes: 14 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
@@ -3,7 +3,12 @@
"description": ".env editor library",
"type": "library",
"keywords": [
"env", "env-editor", "dot-env", "env-php", "env-loader", "env-writer"
"env",
"env-editor",
"dot-env",
"env-php",
"env-loader",
"env-writer"
],
"license": "MIT",
"authors": [
@@ -23,12 +28,16 @@
}
},
"require": {
"php": "^7.2"
"php": ">=8.0"
},
"require-dev": {
"phpunit/phpunit": "^8.5"
"phpunit/phpunit": "9.5"
},
"scripts": {
"test": "phpunit"
"test": "phpunit",
"test:coverage": [
"@putenv XDEBUG_MODE=coverage",
"phpunit --coverage-html coverage --coverage-clover=coverage/clover.xml"
]
}
}
}
Loading