Skip to content

Commit

Permalink
Update files
Browse files Browse the repository at this point in the history
  • Loading branch information
loevgaard committed Aug 15, 2024
1 parent b2a7a1b commit 0065e9b
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 242 deletions.
13 changes: 0 additions & 13 deletions .github/dependabot.yml

This file was deleted.

28 changes: 4 additions & 24 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ on:
pull_request: ~
workflow_dispatch: ~

env:
PHP_EXTENSIONS: "mbstring"

jobs:
coding-standards:
name: "Coding Standards"
Expand All @@ -26,13 +23,12 @@ jobs:

steps:
- name: "Checkout"
uses: "actions/checkout@v3"
uses: "actions/checkout@v4"

- name: "Install PHP with extensions"
uses: "shivammathur/setup-php@v2"
with:
coverage: "none"
extensions: "${{ env.PHP_EXTENSIONS }}"
php-version: "${{ matrix.php-version }}"

- name: "Validate composer.json and composer.lock"
Expand Down Expand Up @@ -64,13 +60,12 @@ jobs:

steps:
- name: "Checkout"
uses: "actions/checkout@v3"
uses: "actions/checkout@v4"

- name: "Install PHP with extensions"
uses: "shivammathur/setup-php@v2"
with:
coverage: "none"
extensions: "${{ env.PHP_EXTENSIONS }}"
php-version: "${{ matrix.php-version }}"
tools: "composer-require-checker, composer-unused"

Expand Down Expand Up @@ -100,33 +95,19 @@ jobs:

steps:
- name: "Checkout"
uses: "actions/checkout@v3"
uses: "actions/checkout@v4"

- name: "Install PHP with extensions"
uses: "shivammathur/setup-php@v2"
with:
coverage: "none"
extensions: "${{ env.PHP_EXTENSIONS }}"
php-version: "${{ matrix.php-version }}"

- name: "Install composer dependencies"
uses: "ramsey/composer-install@v2"
with:
dependency-versions: "${{ matrix.dependencies }}"

- name: "Create cache directory for phpstan/phpstan"
run: "mkdir -p .build/phpstan"

- name: "Cache cache directory for phpstan/phpstan"
uses: "actions/[email protected]"
with:
path: ".build/phpstan"
key: "php-${{ matrix.php-version }}-phpstan-${{ github.sha }}"
restore-keys: "php-${{ matrix.php-version }}-phpstan-"

- name: "Run phpstan/phpstan"
run: "composer analyse"

unit-tests:
name: "Unit tests"

Expand All @@ -143,13 +124,12 @@ jobs:

steps:
- name: "Checkout"
uses: "actions/checkout@v3"
uses: "actions/checkout@v4"

- name: "Setup PHP, with composer and extensions"
uses: "shivammathur/setup-php@v2"
with:
php-version: "${{ matrix.php-version }}"
extensions: "${{ env.PHP_EXTENSIONS }}"
coverage: "none"

- name: "Install composer dependencies"
Expand Down
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# DotEnv handling with Deployer

[![Latest Version][ico-version]][link-packagist]
[![Latest Unstable Version][ico-unstable-version]][link-packagist]
[![Software License][ico-license]](LICENSE)
[![Build Status][ico-github-actions]][link-github-actions]

Expand All @@ -22,7 +21,7 @@ Instead, we have a `.env.[stage].local` and `.env.local.php` in each release fol
* If you are deploying interactively (i.e. manually) you are presented with a dialog asking if you want to update any
environment variables.

* Finally we run `composer symfony:dump-env [stage]` to generate the `.env.local.php` file for the current release.
* Finally, we run `composer symfony:dump-env [stage]` to generate the `.env.local.php` file for the current release.

## Installation

Expand All @@ -47,7 +46,6 @@ require_once 'recipe/setono_dotenv.php';
This will automatically hook into the default flow of Deployer.

[ico-version]: https://poser.pugx.org/setono/deployer-dotenv/v/stable
[ico-unstable-version]: https://poser.pugx.org/setono/deployer-dotenv/v/unstable
[ico-license]: https://poser.pugx.org/setono/deployer-dotenv/license
[ico-github-actions]: https://github.com/Setono/deployer-dotenv/workflows/build/badge.svg

Expand Down
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
],
"require": {
"php": ">=8.1",
"deployer/deployer": "^7.0",
"symfony/console": "^5.4 || ^6.0",
"symfony/dotenv": "^5.4 || ^6.0",
"deployer/deployer": "^7.4",
"symfony/console": "^6.4 || ^7.0",

Check failure on line 15 in composer.json

View workflow job for this annotation

GitHub Actions / Dependency Analysis (8.1, highest)

symfony/console is unused
"symfony/dotenv": "^6.4 || ^7.0",

Check failure on line 16 in composer.json

View workflow job for this annotation

GitHub Actions / Dependency Analysis (8.1, highest)

symfony/dotenv is unused
"webmozart/assert": "^1.11"

Check failure on line 17 in composer.json

View workflow job for this annotation

GitHub Actions / Dependency Analysis (8.1, highest)

webmozart/assert is unused
},
"require-dev": {
"phpunit/phpunit": "^9.5",
"setono/code-quality-pack": "^2.4"
"phpunit/phpunit": "^10.5",
"setono/code-quality-pack": "^2.8.2"
},
"prefer-stable": true,
"autoload": {
Expand Down
187 changes: 0 additions & 187 deletions psalm-baseline.xml

This file was deleted.

4 changes: 1 addition & 3 deletions psalm.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
<?xml version="1.0"?>
<psalm
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
totallyTyped="true"
errorLevel="1"
xmlns="https://getpsalm.org/schema/config"
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
errorBaseline="psalm-baseline.xml"
errorLevel="1"
>
<projectFiles>
<directory name="src"/>
Expand Down
7 changes: 0 additions & 7 deletions src/task/setono_dotenv.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,9 @@

namespace Setono\Deployer\DotEnv;

use function Deployer\ask;
use function Deployer\askConfirmation;
use function Deployer\currentHost;
use function Deployer\get;
use function Deployer\has;
use function Deployer\input;
use function Deployer\invoke;
use function Deployer\output;
use function Deployer\run;
use function Deployer\set;
use function Deployer\task;
use function Deployer\test;
use Symfony\Component\Console\Helper\Table;
Expand Down

0 comments on commit 0065e9b

Please sign in to comment.