Skip to content

Commit

Permalink
Update lightspeed and fix action workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jradtilbrook committed Jul 15, 2023
1 parent 53a2a05 commit 21c4306
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node_count: [1]
node_index: [0, 1]
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

Expand All @@ -30,10 +32,14 @@ jobs:
- 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: ${{ secrets.LIGHTSPEED_URL }}
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
4 changes: 2 additions & 2 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 21c4306

Please sign in to comment.