mock ApiClient instead of ApiClientWrapper #1236
Workflow file for this run
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: test | |
on: | |
push: | |
branches-ignore: ['main'] | |
jobs: | |
test-php: | |
runs-on: ubuntu-22.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
php: | |
- "8.0" | |
- "8.1" | |
- "8.2" | |
db: | |
- "10.2" | |
- "latest" | |
services: | |
mariadb: | |
image: mariadb:${{ matrix.db }} | |
ports: | |
- 3306 | |
env: | |
MARIADB_USER: rootserver | |
MARIADB_PASSWORD: rootserver | |
MARIADB_DATABASE: rootserver | |
MARIADB_ROOT_PASSWORD: rootserver | |
options: --health-cmd="${{ (matrix.db == 'latest') && 'mariadb-admin' || 'mysqladmin' }} ping" --health-interval=5s --health-timeout=2s --health-retries=3 | |
steps: | |
- name: checkout 🛒 | |
uses: actions/checkout@v3 | |
- name: php ${{ matrix.php }} 🐘 | |
id: setup-php | |
uses: shivammathur/setup-php@2.22.0 | |
with: | |
php-version: ${{ matrix.php }} | |
tools: composer:v2.4.1 | |
- name: make composer 🎼 | |
run: | | |
DEV=1 make composer | |
- name: make lint 🧹 | |
run: | | |
make lint | |
- name: make test 🧪 | |
env: | |
DB_PORT: ${{ job.services.mariadb.ports[3306] }} | |
run: | | |
make test | |
test-js: | |
runs-on: ubuntu-22.04 | |
strategy: | |
fail-fast: false | |
steps: | |
- name: checkout 🛒 | |
uses: actions/checkout@v3 | |
- name: node 16 ❇️ | |
uses: actions/setup-node@v3.5.1 | |
with: | |
node-version: 16 | |
- name: make npm ♦️ | |
run: | | |
make npm | |
- name: make lint-js 🧹 | |
run: | | |
make lint-js | |
- name: make test-js 🧪 | |
env: | |
LARAVEL_BYPASS_ENV_CHECK: '1' | |
run: | | |
make test-js |