diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml new file mode 100644 index 0000000..2eacd99 --- /dev/null +++ b/.github/workflows/coverage.yml @@ -0,0 +1,21 @@ +name: "Coverage" + +permissions: + contents: read + +on: + pull_request: + workflow_dispatch: + + push: + branches: ["*"] + + schedule: + - cron: "0 9 * * 1" + +jobs: + coverage: + name: "Nette Tester" + uses: contributte/.github/.github/workflows/nette-tester-coverage-v2.yml@master + with: + php: "8.2" diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index cd84570..5363e10 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -23,7 +23,7 @@ jobs: strategy: matrix: - php-version: [ "8.1" ] + php-version: [ "8.2" ] operating-system: [ "ubuntu-latest" ] fail-fast: false @@ -82,7 +82,7 @@ jobs: strategy: matrix: - php-version: [ "8.1" ] + php-version: [ "8.2" ] operating-system: [ "ubuntu-latest" ] fail-fast: false @@ -138,11 +138,11 @@ jobs: strategy: matrix: - php-version: ["8.1", "8.2", "8.3", "8.4","8.5"] + php-version: ["8.2", "8.3", "8.4","8.5"] operating-system: [ "ubuntu-latest" ] composer-args: [ "" ] include: - - php-version: "8.1" + - php-version: "8.2" operating-system: "ubuntu-latest" composer-args: "--prefer-lowest" - php-version: "8.3" @@ -198,70 +198,3 @@ jobs: - name: "Tests" run: "make tests" - - tests-code-coverage: - name: "Tests with code coverage" - runs-on: "${{ matrix.operating-system }}" - - strategy: - matrix: - php-version: [ "8.1" ] - operating-system: [ "ubuntu-latest" ] - fail-fast: false - - if: "github.event_name == 'push'" - - steps: - - name: "Checkout" - uses: "actions/checkout@v4" - - - name: "Setup PHP cache environment" - id: "extcache" - uses: "shivammathur/cache-extensions@v1" - with: - php-version: "${{ matrix.php-version }}" - extensions: "${{ env.extensions }}" - key: "${{ env.cache-version }}" - - - name: "Cache PHP extensions" - uses: "actions/cache@v4" - with: - path: "${{ steps.extcache.outputs.dir }}" - key: "${{ steps.extcache.outputs.key }}" - restore-keys: "${{ steps.extcache.outputs.key }}" - - - name: "Install PHP" - uses: "shivammathur/setup-php@v2" - with: - php-version: "${{ matrix.php-version }}" - extensions: "${{ env.extensions }}" - tools: "composer:${{ env.composer-version }} " - - - name: "Setup problem matchers for PHP" - run: 'echo "::add-matcher::${{ runner.tool_cache }}/php.json"' - - - name: "Get Composer cache directory" - id: "composercache" - run: 'echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT' - - - name: "Cache PHP dependencies" - uses: "actions/cache@v4" - with: - path: "${{ steps.composercache.outputs.dir }}" - key: "${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}" - restore-keys: "${{ runner.os }}-composer-" - - - name: "Install dependencies" - run: "${{ env.composer-install }}" - - - name: "Tests" - run: "make coverage" - - - name: "Coveralls.io" - env: - CI_NAME: github - CI: true - COVERALLS_REPO_TOKEN: "${{ secrets.GITHUB_TOKEN }}" - run: | - wget https://github.com/php-coveralls/php-coveralls/releases/download/v2.1.0/php-coveralls.phar - php php-coveralls.phar --verbose --config tests/.coveralls.yml diff --git a/README.md b/README.md index 39bcbde..57bbe71 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@

- +

diff --git a/composer.json b/composer.json index 117a375..cb61c8f 100644 --- a/composer.json +++ b/composer.json @@ -17,7 +17,7 @@ } ], "require": { - "php": ">=8.1", + "php": ">=8.2", "nette/forms": "3.2.9", "nette/application": "^3.0" }, diff --git a/tests/.coveralls.yml b/tests/.coveralls.yml deleted file mode 100644 index f94e568..0000000 --- a/tests/.coveralls.yml +++ /dev/null @@ -1,4 +0,0 @@ -# for php-coveralls -service_name: : github-actions -coverage_clover: coverage.xml -json_path: coverage.json