also looking at this
add test case
#37
8 files
+106
-88
| @@ -1,7 +1,6 @@ | ||
| 1 | 1 | name: Run Tests |
| 2 | 2 | |
| 3 | 3 | on: |
| 4 | push: | |
| 5 | 4 | pull_request: |
| 6 | 5 | |
| 7 | 6 | jobs: |
| @@ -10,8 +9,8 @@ jobs: | ||
| 10 | 9 | strategy: |
| 11 | 10 | fail-fast: false |
| 12 | 11 | matrix: |
| 13 | php: [7.4, 8.0] | |
| 14 | dependency-version: [prefer-lowest, prefer-stable] | |
| 12 | php: [7.4] | |
| 13 | dependency-version: [prefer-stable] | |
| 15 | 14 | |
| 16 | 15 | name: P ${{ matrix.php }} - ${{ matrix.dependency-version }} |
| 17 | 16 | |
| @@ -33,4 +32,13 @@ jobs: | ||
| 33 | 32 | |
| 34 | 33 | - name: Install dependencies |
| 35 | 34 | 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 | |