Skip to content
This repository has been archived by the owner on Jan 17, 2025. It is now read-only.

Improve Github CI #60

Merged
merged 1 commit into from
Dec 2, 2024
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
9 changes: 6 additions & 3 deletions .github/workflows/phpunit.yaml → .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: PHPUnit
name: CI
on: [push]

env:
DATABASE_URL: postgresql://postgres:[email protected]:5432/todolist?serverVersion=13&charset=utf8

jobs:
tests:
name: PHPUnit
name: CI
# https://hub.docker.com/_/ubuntu/
runs-on: ubuntu-latest
services:
Expand Down Expand Up @@ -52,7 +52,10 @@ jobs:
- name: Install Composer dependencies
run: composer install

## —— Tests ✅ ———————————————————————————————————————————————————————————
- name: Run checks
run: make checks

# —— Tests ✅ ———————————————————————————————————————————————————————————
- name: Create database
run: bin/console doctrine:database:create --if-not-exists --env=test

Expand Down
56 changes: 0 additions & 56 deletions .github/workflows/php-cs-fixer.yaml

This file was deleted.

56 changes: 0 additions & 56 deletions .github/workflows/phpstan.yaml

This file was deleted.

56 changes: 0 additions & 56 deletions .github/workflows/twig-cs-fixer.yaml

This file was deleted.

56 changes: 0 additions & 56 deletions .github/workflows/yaml-lint.yaml

This file was deleted.

6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,10 @@ sf-cw: ## Warmup Symfony cache
.PHONY: php-cs-fixer phpstan twig-cs-fixer yaml-lint rector

checks: ## Run checks
checks: php-cs-fixer twig-cs-fixer yaml-lint phpstan rector
checks: rector php-cs-fixer twig-cs-fixer yaml-lint phpstan

php-cs-fixer: ## Run php-cs-fixer
PHP_CS_FIXER_IGNORE_ENV=true vendor/bin/php-cs-fixer fix --diff --dry-run --verbose
PHP_CS_FIXER_IGNORE_ENV=true vendor/bin/php-cs-fixer fix --diff --verbose

phpstan: ## Run phpstan
vendor/bin/phpstan analyse --memory-limit=1G
Expand All @@ -108,7 +108,7 @@ yaml-lint: ## Run yaml-lint
bin/console lint:yaml config translations

rector: ## Run rector
vendor/bin/rector --dry-run
vendor/bin/rector

# Tests
.PHONY: tests tests-reset coverage coverage-reset
Expand Down
Loading