Skip to content

Use PHP 8.1 in github actions #23

Use PHP 8.1 in github actions

Use PHP 8.1 in github actions #23

Workflow file for this run

name: Demo
on: ['push']
jobs:
ci:
runs-on: ubuntu-latest
strategy:
matrix:
node_count: [3]
node_index: [0, 1, 2]
test_runner: [lightspeed, phpunit, paratest]
exclude:
- node_index: 1
test_runner: phpunit
- node_index: 2
test_runner: phpunit
- node_index: 1
test_runner: paratest
- node_index: 2
test_runner: paratest
name: Demo
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
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