diff --git a/.github/workflows/acceptance.yml b/.github/workflows/acceptance.yml new file mode 100644 index 0000000..9b01b16 --- /dev/null +++ b/.github/workflows/acceptance.yml @@ -0,0 +1,79 @@ +name: Acceptance + +on: [push, pull_request] + +jobs: + test-7-2: + runs-on: ubuntu-latest + name: Test PHP 7.2 + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Set up PHP 7.2 + uses: shivammathur/setup-php@v2 + with: + php-version: '7.2' + - name: Composer + run: make install + - name: Test + run: make test + + test-7-3: + runs-on: ubuntu-latest + name: Test PHP 7.3 + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Set up PHP 7.3 + uses: shivammathur/setup-php@v2 + with: + php-version: '7.3' + - name: Composer + run: make install + - name: Test + run: make test + + test-7-4: + runs-on: ubuntu-latest + name: Test PHP 7.4 + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Set up PHP 7.4 + uses: shivammathur/setup-php@v2 + with: + php-version: '7.4' + - name: Composer + run: make install + - name: Test + run: make test + + test-8-0: + runs-on: ubuntu-latest + name: Test PHP 8.0 + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Set up PHP 8.0 + uses: shivammathur/setup-php@v2 + with: + php-version: '8.0' + - name: Composer + run: make install + - name: Test + run: make test + + cs-check: + runs-on: ubuntu-latest + name: Code standard + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Set up PHP 8.0 + uses: shivammathur/setup-php@v2 + with: + php-version: '8.0' + - name: Composer + run: make install + - name: Code standard + run: make cs-check diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 288077f..0000000 --- a/.travis.yml +++ /dev/null @@ -1,14 +0,0 @@ -language: php - -php: - - 8.0 - - 7.4 - - 7.3 - - 7.2 - -before_script: - - make install build - -script: - - make coverage - - make cs-check \ No newline at end of file diff --git a/README.md b/README.md index 6d075da..01bc4c3 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,6 @@ Abicart (Textalk Webshop) API-client ========================== - -[![Build Status](https://travis-ci.com/Textalk/textalk-webshopclient-php.png)](https://travis-ci.com/Textalk/textalk-webshopclient-php) +[![Build Status](https://github.com/Textalk/textalk-webshopclient-php/actions/workflows/acceptance.yml/badge.svg)](https://github.com/Textalk/textalk-webshopclient-php/actions) [![Coverage Status](https://coveralls.io/repos/Textalk/textalk-webshopclient-php/badge.png)](https://coveralls.io/r/Textalk/textalk-webshopclient-php) A library to simplify API-usage on Abicart API. diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 24c2549..3da2e63 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,6 +1,6 @@ - + tests