From 3dd20503f7e0d6d86df4dcc8be776ad56e3645bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20Hochd=C3=B6rfer?= Date: Fri, 14 Jun 2024 14:33:48 +0200 Subject: [PATCH 1/2] Setup basic CI pipeline --- .github/dependabot.yml | 9 +++++++++ .github/workflows/ci.yml | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/ci.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..07ebbfe --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,9 @@ +version: 2 +updates: +- package-ecosystem: composer + directory: "/" + schedule: + interval: daily + time: "04:00" + open-pull-requests-limit: 10 + diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..d6a4e17 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,38 @@ +name: ci +on: + pull_request: + push: + branches: + - "master" + +jobs: + run: + runs-on: ${{ matrix.operating-system }} + strategy: + matrix: + operating-system: ['ubuntu-latest'] + php-versions: ['8.1', '8.2', '8.3'] + + steps: + - name: Checkout repo + uses: actions/checkout@v2 + + - name: Configure PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php-versions }} + tools: composer:v2 + coverage: xdebug + extensions: bcmath, gd + + - name: Install Composer dependencies + run: composer install + + - name: Codesniffer + run: composer cs-check + + - name: Static Code Analysis + run: composer analyze + + - name: Unittests + run: composer test From 111557b617e7631fb02599f5199cef16300f6a48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20Hochd=C3=B6rfer?= Date: Fri, 14 Jun 2024 14:41:18 +0200 Subject: [PATCH 2/2] Remove psalm dependency --- composer.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 7c4ba4d..ee8fcc3 100644 --- a/composer.json +++ b/composer.json @@ -43,8 +43,7 @@ "symfony/dotenv": "^5.4 || ^6.0", "symfony/flex": "^2.2.2", "symfony/intl": "^5.4 || ^6.0", - "symfony/web-profiler-bundle": "^5.4 || ^6.0", - "vimeo/psalm": "5.9.0" + "symfony/web-profiler-bundle": "^5.4 || ^6.0" }, "conflict": { "symfony/framework-bundle": "6.2.8"