Skip to content
This repository has been archived by the owner on Jun 10, 2022. It is now read-only.

Commit

Permalink
Create tests.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
gpanos authored Jun 16, 2020
1 parent 4d738ca commit bec532a
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: tests

on:
push:
pull_request:

jobs:
tests:

runs-on: ubuntu-latest

strategy:
matrix:
php: [7.4, 7.3, 7.2]
laravel: [7.*, 6.*, 5.8.*]

name: P${{ matrix.php }} - L${{ matrix.laravel }}

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Cache dependencies
uses: actions/cache@v1
with:
path: ~/.composer/cache/files
key: dependencies-laravel-${{ matrix.laravel }}-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
coverage: none

- name: Install dependencies
run: composer install --no-scripts

- name: Execute tests
run: vendor/bin/phpunit --verbose
env:
PWINTY_API_KEY: ${{secrets.PWINTY_API_KEY}}
PWINTY_MERCHANT_ID: ${{secrets.PWINTY_MERCHANT_ID}}
PWINTY_SKU: ${{secrets.PWINTY_SKU}}

0 comments on commit bec532a

Please sign in to comment.