Skip to content

Commit

Permalink
Add gh actions sqlite workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
romanzipp committed Sep 4, 2023
1 parent 041709a commit c589b6b
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/tests-sqlite.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Tests (SQLite)

on: [ push ]

jobs:
test:
strategy:
fail-fast: false
matrix:
php: [ "8.0", "8.1", "8.2" ]
name: "PHP ${{ matrix.php }}"
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none

- name: Install dependencies
run: composer update --no-interaction --no-scripts --no-suggest --no-progress --prefer-dist --prefer-stable

- name: Create database
run: touch db.sqlite

- name: Execute tests
run: vendor/bin/phpunit
env:
DB_CONNECTION: sqlite
DB_DATABASE: "db.sqlite"

0 comments on commit c589b6b

Please sign in to comment.