%PDF- %PDF-
Direktori : /www/loslex_o/demo/vendor/sunfoxcz/spayd-php/.github/workflows/ |
Current File : /www/loslex_o/demo/vendor/sunfoxcz/spayd-php/.github/workflows/tests.yml |
name: Tests on: - push - pull_request jobs: tests: runs-on: ubuntu-latest strategy: matrix: php: - 7.4 - 8.0 - 8.1 - 8.2 fail-fast: false name: PHP ${{ matrix.php }} tests steps: - uses: actions/checkout@v2 - uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php }} extensions: bcmath coverage: none - name: Get Composer Cache Directory id: composer-cache run: echo "::set-output name=dir::$(composer config cache-files-dir)" - uses: actions/cache@v1 with: path: ${{ steps.composer-cache.outputs.dir }} key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} restore-keys: ${{ runner.os }}-composer- - run: composer update --no-progress --prefer-dist --prefer-stable - run: composer tests - if: failure() run: for i in $(find tests -name \*.actual); do echo "--- $i"; cat $i; echo; echo; done shell: bash lowest_dependencies: name: Lowest Dependencies runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - uses: shivammathur/setup-php@v2 with: php-version: 7.4 extensions: bcmath coverage: none - name: Get Composer Cache Directory id: composer-cache run: echo "::set-output name=dir::$(composer config cache-files-dir)" - uses: actions/cache@v1 with: path: ${{ steps.composer-cache.outputs.dir }} key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} restore-keys: ${{ runner.os }}-composer- - run: composer update --no-progress --prefer-dist --prefer-stable --prefer-lowest - run: composer tests - if: failure() run: for i in $(find tests -name \*.actual); do echo "--- $i"; cat $i; echo; echo; done shell: bash