-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (37 loc) · 1.16 KB
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Demo
on: ['push']
jobs:
ci:
runs-on: ubuntu-latest
strategy:
matrix:
node_count: [3]
node_index: [0, 1, 2]
test_runner: [lightspeed, phpunit]
exclude:
- node_index: 1
test_runner: phpunit
- node_index: 2
test_runner: phpunit
name: Demo
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.0
tools: composer:v2
coverage: none
- name: Install PHP dependencies
run: composer update --no-interaction --no-progress
- name: Set APP_KEY
run: cp .env.example .env && php artisan key:generate
- name: Tests ${{ matrix.test_runner }} (${{ matrix.node_index}})
env:
LIGHTSPEED_API_TOKEN: ${{ secrets.LIGHTSPEED_TOKEN }}
LIGHTSPEED_BASE_URL: ${{ vars.LIGHTSPEED_URL }}
LIGHTSPEED_NODE_COUNT: ${{ matrix.node_count }}
LIGHTSPEED_NODE_INDEX: ${{ matrix.node_index }}
LIGHTSPEED_MESSAGE: ${{ github.event.head_commit.message }}
run: php vendor/bin/${{ matrix.test_runner }} --colors=always