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 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"