From 0543149fbca3ccceb3c0fb4e01434a9a6c8b8e60 Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Sat, 7 Mar 2020 14:24:53 +0800 Subject: [PATCH] Tweak workflow. Signed-off-by: Mior Muhammad Zaki --- .github/workflows/run-tests.yml | 41 --------------------------------- .github/workflows/tests.yml | 41 +++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+), 41 deletions(-) delete mode 100644 .github/workflows/run-tests.yml create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml deleted file mode 100644 index 002049a..0000000 --- a/.github/workflows/run-tests.yml +++ /dev/null @@ -1,41 +0,0 @@ -name: run-tests - -on: - push: - pull_request: - schedule: - - cron: '0 0 * * *' - -jobs: - test: - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - php: [7.4, 7.3, 7.2] - os: [ubuntu-latest, windows-latest] - - name: PHP${{ matrix.php }} on ${{ matrix.os }} - - steps: - - name: Checkout code - uses: actions/checkout@v1 - - - 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@v1 - with: - php-version: ${{ matrix.php }} - extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, mysql, mysqli, pdo_mysql, bcmath, soap, intl, gd, exif, iconv, imagick - coverage: none - - - name: Install dependencies - run: | - composer update --prefer-dist --no-interaction --no-suggest - - name: Execute tests - run: vendor/bin/phpunit diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..4f6e5fb --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,41 @@ +name: tests + +on: + push: + pull_request: + schedule: + - cron: '0 0 * * *' + +jobs: + tests: + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + php: [7.4, 7.3, 7.2] + os: [ubuntu-latest, windows-latest] + + name: PHP${{ matrix.php }} on ${{ matrix.os }} + + steps: + - name: Checkout code + uses: actions/checkout@v1 + + - 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@v1 + with: + php-version: ${{ matrix.php }} + extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, mysql, mysqli, pdo_mysql, bcmath, soap, intl, gd, exif, iconv, imagick + coverage: none + + - name: Install dependencies + run: | + composer update --prefer-dist --no-interaction --no-suggest + - name: Execute tests + run: vendor/bin/phpunit