diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..0013236 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,27 @@ +--- + +# To get started with Dependabot version updates, you'll need to specify which +# package ecosystems to update and where the package manifests are located. +# Please see the documentation for all configuration options: +# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates + +version: 2 +updates: + - package-ecosystem: "github-actions" # See documentation for possible values + directory: "/" # Location of package manifests + schedule: + interval: "weekly" + groups: + all-actions: + patterns: ["*"] + + - package-ecosystem: "composer" # See documentation for possible values + directory: "/" # Location of package manifests + schedule: + interval: "daily" + groups: + dev-dependencies: + dependency-type: "development" + update-types: + - "minor" + - "patch" diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index 028c58e..a5b6b66 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -20,13 +20,17 @@ jobs: steps: - uses: actions/checkout@v4 with: + # super-linter needs the full git history to get the + # list of files that changed across commits fetch-depth: 0 - name: Lint Code Base uses: github/super-linter/slim@v5 env: - VALIDATE_ALL_CODEBASE: true + # To report GitHub Actions status checks + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} LINTER_RULES_PATH: 'tools/linters' + VALIDATE_ALL_CODEBASE: true VALIDATE_JSON: true VALIDATE_PHP_BUILTIN: true VALIDATE_YAML: true @@ -58,7 +62,7 @@ jobs: run: echo COMPOSER_CACHE="$(composer config cache-files-dir)" >> "$GITHUB_ENV" - name: Cache composer dependencies - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: $COMPOSER_CACHE key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} @@ -105,7 +109,7 @@ jobs: uses: shivammathur/setup-php@v2 with: # Should be the lowest supported version - php-version: '8.0' + php-version: '8.1' extensions: ctype, date, dom, filter, hash, intl, mbstring, openssl, pcre, spl, xml tools: composer coverage: none @@ -119,7 +123,7 @@ jobs: run: echo COMPOSER_CACHE="$(composer config cache-files-dir)" >> "$GITHUB_ENV" - name: Cache composer dependencies - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: $COMPOSER_CACHE key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} diff --git a/composer.json b/composer.json index 015a4da..15277be 100644 --- a/composer.json +++ b/composer.json @@ -16,14 +16,14 @@ } }, "require": { - "phpunit/phpunit": "^9.6 || ^10.0", - "slevomat/coding-standard": "^8.14" + "phpunit/phpunit": "^9.6 || ^10.0 || ^11.0", + "slevomat/coding-standard": "^8.15" }, "require-dev": { - "php": "^8.0", + "php": "^8.1", "ext-curl": "*", - "simplesamlphp/simplesamlphp": "^2.0.0" + "simplesamlphp/simplesamlphp": "^2.2.0" }, "support": { "issues": "https://github.com/simplesamlphp/simplesamlphp-test-framework/issues",