Merge pull request #55 from thecaliskan/patch-1 #173
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: run-tests | |
on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: true | |
matrix: | |
php: [8.1, 8.0, 7.4] | |
dependency-version: [prefer-lowest, prefer-stable] | |
name: P${{ matrix.php }} - ${{ matrix.dependency-version }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v1 | |
- name: Install sed | |
run: sudo apt-get install sed | |
- name: Set permissions for keys | |
run: | | |
chmod 700 tests/keys/spatie_docker_package_id_rsa | |
chmod 700 tests/keys/spatie_docker_package_id_rsa.pub | |
- name: Patch SSH Daemon | |
run: sudo sed -ri 's/^#? StrictHostKeyChecking ask/StrictHostKeyChecking no/g' /etc/ssh/ssh_config | |
- name: Cache dependencies | |
uses: actions/cache@v1 | |
with: | |
path: ~/.composer/cache/files | |
key: dependencies-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }} | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick | |
coverage: none | |
- name: Install dependencies | |
run: composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest | |
- name: Execute tests | |
run: vendor/bin/pest |