ReviewOS

also looking at this

meemalabs/meema-client-php

add test case

#37
Merged glennmichael123 wants to merge test-environment into main
8 files +106 -88
.github/workflows/run-tests.ymlmodified+12-4
Changes to .github/workflows/run-tests.yml
@@ -1,7 +1,6 @@
11name: Run Tests
22
33on:
4 push:
54 pull_request:
65
76jobs:
@@ -10,8 +9,8 @@ jobs:
109 strategy:
1110 fail-fast: false
1211 matrix:
13 php: [7.4, 8.0]
14 dependency-version: [prefer-lowest, prefer-stable]
12 php: [7.4]
13 dependency-version: [prefer-stable]
1514
1615 name: P ${{ matrix.php }} - ${{ matrix.dependency-version }}
1716
@@ -33,4 +32,13 @@ jobs:
3332
3433 - name: Install dependencies
3534 run: |
36 composer require "orchestra/testbench" --no-interaction --no-update
35 composer install
36 - name: Make envfile
37 uses: SpicyPizza/create-envfile@v1
38 with:
39 envkey_BASE_URL: "http://meema-api.test/api/"
40 envkey_BASE_URL_TEST: "https://test-api.mee.ma/api/"
41 envkey_PUBLISHABLE_KEY: ${{ secrets.PUBLISHABLE_KEY }}
42 file_name: .env
43 - name: Execute tests
44 run: vendor/bin/pest