diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index b8936ac..40b141d 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,47 +1,23 @@ --- -name: Continuous Integration - Main +name: Continuous Integration -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -on: - push: - branches: - - main +on: [push, pull_request] jobs: php-cs-fixer: runs-on: ubuntu-latest + env: + PHP_CS_FIXER_IGNORE_ENV: true steps: - uses: actions/checkout@v3 - with: - fetch-depth: 0 - uses: shivammathur/setup-php@v2 with: - php-version: '8.1' + php-version: '8.2' coverage: none - tools: composer, cs2pr - - id: cache-php-cs-fixer-vendor - uses: actions/cache@v3 - with: - path: | - tools/php-cs-fixer/vendor - key: php-cs-fixer-vendor-${{ hashFiles('tools/php-cs-fixer/composer.lock') }} + tools: cs2pr, composer - run: composer --working-dir=tools/php-cs-fixer install - if: steps.cache-php-cs-fixer-vendor.outputs.cache-hit != 'true' - - uses: actions/cache@v3 - with: - path: .php-cs-fixer.cache - key: php-cs-fixer-cache-${{ hashFiles('tools/php-cs-fixer/composer.*', '.php-cs-fixer.dist.php') }} - - run: > - tools/php-cs-fixer/vendor/bin/php-cs-fixer fix - --config=.php-cs-fixer.dist.php - --diff - --dry-run - --format=checkstyle - | cs2pr --colorize --prepend-filename --prepend-source + - run: tools/php-cs-fixer/vendor/bin/php-cs-fixer fix --diff --dry-run --format=checkstyle | cs2pr phpstan: runs-on: ubuntu-latest @@ -50,22 +26,21 @@ jobs: - uses: actions/checkout@v3 - uses: shivammathur/setup-php@v2 with: - php-version: '8.1' + php-version: '8.2' coverage: none - tools: cs2pr, phpstan - - run: | - composer install - composer --working-dir=tools/phpstan install - tools/phpstan/vendor/bin/phpstan --error-format=checkstyle | cs2pr + tools: cs2pr, composer + - run: composer update + - run: composer --working-dir=tools/phpstan install + - run: tools/phpstan/vendor/bin/phpstan --error-format=checkstyle | cs2pr phpunit: runs-on: ubuntu-latest strategy: fail-fast: false matrix: - php: [8.1, 8.0, 7.4] + php: [8.3, 8.2, 8.1, 8.0, 7.4, 7.3] stability: [prefer-lowest, prefer-stable] - name: phpunit on PHP ${{ matrix.php }}@${{ matrix.stability }} + name: PHPUnit on PHP ${{ matrix.php }}@${{ matrix.stability }} steps: - uses: actions/checkout@v3 - uses: shivammathur/setup-php@v2 @@ -86,9 +61,3 @@ jobs: - uses: ibiqlik/action-yamllint@v3 with: format: github - config_data: | - extends: default - rules: - line-length: false - truthy: - check-keys: false diff --git a/README.md b/README.md index 3685912..3f7cfcb 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,6 @@ A PHP library providing ISO 4217 data. -[![Build Status](https://img.shields.io/travis/alcohol/iso4217/master.svg?style=flat-square)](https://travis-ci.org/alcohol/iso4217) [![codecov](https://codecov.io/gh/alcohol/iso4217/branch/master/graph/badge.svg)](https://codecov.io/gh/alcohol/iso4217) [![License](https://img.shields.io/packagist/l/alcohol/iso4217.svg?style=flat-square)](https://packagist.org/packages/alcohol/iso4217)