Skip to content

bump ubuntu and php version for tests #15

bump ubuntu and php version for tests

bump ubuntu and php version for tests #15

Workflow file for this run

name: tests
on:
push:
pull_request:
jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php: ["8.2"]
name: PHP ${{ matrix.php }} - Pest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, bcmath
ini-values: error_reporting=E_ALL
tools: composer:v2
coverage: none
- name: Install dependencies
run: composer update --prefer-dist --no-interaction --no-progress
- name: Execute tests
env:
WHMCS_URL: "https://whmcs.test"
WHMCS_API_SECRET: "api-secret"
WHMCS_API_IDENTIFIER: "api-identifier"
WHMCS_URL2: "https://whmcs.test"
WHMCS_API_SECRET2: "api-secret"
WHMCS_API_IDENTIFIER2: "api-identifier"
run: vendor/bin/pest
- name: Configure .env
uses: SpicyPizza/[email protected]
with:
envkey_WHMCS_URL: "https://whmcs.test"
envkey_WHMCS_API_SECRET: "api-secret"
envkey_WHMCS_API_IDENTIFIER: "api-identifier"
envkey_WHMCS_URL2: "https://whmcs.test"
envkey_WHMCS_API_SECRET2: "api-secret"
envkey_WHMCS_API_IDENTIFIER2: "api-identifier"