Remove ssh from docker compose #18
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: 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 |